diff options
author | Adam Brenecki <adam@brenecki.id.au> | 2014-01-19 16:10:58 +1030 |
---|---|---|
committer | Adam Brenecki <adam@brenecki.id.au> | 2014-01-19 16:10:58 +1030 |
commit | c43c033646f87b735246bb5c681945b72cc4855c (patch) | |
tree | 31f8bd6c2817305eb5ef3af04fb6b609b996dbdb | |
parent | 11f860fce6e8c4ba900769776068c49778d8c1dc (diff) |
Fixed `) {` vs `){` inconsistency
-rw-r--r-- | javascript.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index 7fb7ba55..a9d73cf1 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -175,14 +175,14 @@ myObj.myFourthKey; // = undefined var count = 1; if (count == 3){ // evaluated if count is 3 -} else if (count == 4) { +} else if (count == 4){ // evaluated if count is 4 } else { // evaluated if it's not either 3 or 4 } // As does while. -while (true) { +while (true){ // An infinite loop! } @@ -327,7 +327,7 @@ var anotherFunc = function(s){ } anotherFunc.call(myObj, " And Hello Moon!"); // = "Hello World! And Hello Moon!" -// The 'apply' function is nearly identical, but takes an array for an argument list. +// The 'apply' function is nearly identical, but takes an array for an argument list. anotherFunc.apply(myObj, [" And Hello Sun!"]); // = "Hello World! And Hello Sun!" |