summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrank van Gemeren <pinkywithabrain@gmail.com>2015-10-29 01:27:03 +0100
committerFrank van Gemeren <pinkywithabrain@gmail.com>2015-10-29 01:27:03 +0100
commit016f2581e9fb1b9ca158251a47210d21baa36ee0 (patch)
treee62eaed0c5d6a32e6bb55406967b19bf54575b82
parentcbc2daa58d85a0729b898774ff8030f9268a303d (diff)
parent7119a37a4ed261f677c9c3401fb981615223f058 (diff)
Merge remote-tracking branch 'refs/remotes/adambard/master'
-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