summaryrefslogtreecommitdiffhomepage
path: root/javascript.html.markdown
diff options
context:
space:
mode:
authorJacob Ward <jacobward1898@gmail.com>2015-10-30 07:39:58 -0600
committerJacob Ward <jacobward1898@gmail.com>2015-10-30 07:39:58 -0600
commitbb006a51c12e59ba215a7eab340bbbac8d024278 (patch)
tree1920b3770541783fb9e83e9ee41017c6f060cf33 /javascript.html.markdown
parent011c0b5fc7c723011f79554720593873f5275cca (diff)
parentf0a4c88acfac9514aca6dd33e2d3f8c4d5e815dc (diff)
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r--javascript.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index cd75b0d2..e285ca4e 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -101,6 +101,10 @@ false;
// Strings are concatenated with +
"Hello " + "world!"; // = "Hello world!"
+// ... which works with more than just strings
+"1, 2, " + 3; // = "1, 2, 3"
+"Hello " + ["world", "!"] // = "Hello world,!"
+
// and are compared with < and >
"a" < "b"; // = true