BNewing / calculator

Javascript exercise
0 stars 0 forks source link

added semicolons #3

Closed markdessain closed 8 years ago

markdessain commented 8 years ago

1. Semicolons

In Javascript you should always have a semicolon after each expression. You've included them in some places but not all.

Your code will still run, but is considered as good practice as it can stop your programming from doing strange things later on once it becomes more complex.

Though just a quick note, when you move onto Ruby and Python, you'll notice that they do not end expressions with semicolons.