@@ -100,7 +100,7 @@ In the above case, a number is being added to a string. JavaScript turns the num
100100Now let's output the current year, and auto-calculate the value of the next year using ** addition**
101101
102102``` js
103- var year = 2014 ;
103+ var year = 2015 ;
104104var nextYear = year + 1 ;
105105
106106console .log (" We are in " + year + " , but " + nextYear + " is just around the corner!" );
@@ -131,7 +131,7 @@ console.log("What kind of variable am I? " + iDontHaveAValue);
131131> The general convention in JavaScript is to use ` lowerCamelCase ` while naming variables.
132132
133133### Operations
134- The are are a number of operations you can apply, just like when using math.
134+ There are a number of operations you can apply, just like when using math.
135135
136136Let's section the output by outputting a title
137137
@@ -194,7 +194,7 @@ if (!codebarIsAwesome) {
194194}
195195```
196196
197- > This should not output anything. Try setting ` codebarIsAwesome ` to false before running this expression.
197+ > This should not output anything. Try setting ` codebarIsAwesome ` to false before running this expression.
198198
199199> Did you use ` var ` ? Since we have already declared our variable, you shouldn't need to do that.
200200
@@ -331,7 +331,7 @@ function popupHello(name) {
331331
332332Now that you fixed the problem, call the function from you browser's console!
333333
334- > Don't add the call to the function in your ` script.js ` (It will get annoying to see it ever time you refresh!)
334+ > Don't add the call to the function in your ` script.js ` (It will get annoying to see it every time you refresh!)
335335
336336### Multiple arguments
337337
@@ -362,7 +362,7 @@ To fix this, we must explicitly use `return` when we want the function to give u
362362Change the function to
363363
364364``` js
365- return x+ y;
365+ return x + y;
366366```
367367
368368> Anything after the return will be ignored. What happens when you add some content before the end of your function but after defining ` return ` ?
@@ -371,7 +371,7 @@ You can fill an argument of a function with a call from another function. It's c
371371
372372### Scope
373373
374- When we declare variable within a function, they are not visible outside it.
374+ When we declare a variable within a function, they are not visible outside it.
375375
376376``` js
377377function subtractNumbers (x ,y ) {
0 commit comments