diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2015-10-18 12:00:18 -0500 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2015-10-18 12:00:18 -0500 |
commit | 8656cfe09f83f3492b017fc89b9c1a9f273f368c (patch) | |
tree | 8ab197307c34e8063e99697c0edd89b78de36fdd | |
parent | a88c6e8d694d0b2296929e53dd6507a6ef082148 (diff) | |
parent | 841dcb5f0985f2b25a2d0b2285b03777cefd1a4f (diff) |
Merge pull request #1537 from xtrasmal/patch-1
Updated javascript.html.markdown
-rw-r--r-- | javascript.html.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index 9c4f06fc..d408e885 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -149,6 +149,10 @@ someOtherVar = 10; // Variables declared without being assigned to are set to undefined. var someThirdVar; // = undefined +// if you wan't to declare a couple of variables, then you could use a comma +// separator +var someFourthVar = 2, someFifthVar = 4; + // There's shorthand for performing math operations on variables: someVar += 5; // equivalent to someVar = someVar + 5; someVar is 10 now someVar *= 10; // now someVar is 100 |