Skip to content

Commit

Permalink
Merge pull request #1 from DrJonOsterman/patch-1
Browse files Browse the repository at this point in the history
comment syntax fix
  • Loading branch information
daisylb committed Jun 29, 2013
2 parents 9c81beb + 325ecf2 commit cecd27b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions javascript.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!"
Expand Down

0 comments on commit cecd27b

Please sign in to comment.