summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Brenecki <adam@brenecki.id.au>2013-06-29 06:22:17 -0700
committerAdam Brenecki <adam@brenecki.id.au>2013-06-29 06:22:17 -0700
commitcecd27b9df1ddf9bfc78ff8c01809492bfa3e5ba (patch)
treea5d6f94103c3499a063543ab9d1ef25d1fdd6897
parent9c81beb8114d246cd0de5e83340363cdebc87155 (diff)
parent325ecf20a02655643c22e9692d697d258211814e (diff)
Merge pull request #1 from DrJonOsterman/patch-1
comment syntax fix
-rw-r--r--javascript.html.markdown10
1 files changed, 5 insertions, 5 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index 1565f541..c3bf131c 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -42,7 +42,7 @@ doStuff()
35 / 5 // = 7
// Uneven division works how you'd expect, too.
-5 / 2 # = 2.5
+5 / 2 // = 2.5
// Enforce precedence with parentheses
(1 + 3) * 2 // = 8
@@ -68,10 +68,10 @@ false
2 != 1 // = true
// More comparisons
-1 < 10 #=> True
-1 > 10 #=> False
-2 <= 2 #=> True
-2 >= 2 #=> True
+1 < 10 // => True
+1 > 10 // => False
+2 <= 2 // => True
+2 >= 2 // => True
// Strings are concatenated with +
"Hello " + "world!" // = "Hello world!"