summaryrefslogtreecommitdiffhomepage
path: root/javascript.html.markdown
diff options
context:
space:
mode:
authorKyle Mendes <kmendes@fuzzproductions.com>2015-10-28 17:25:44 -0400
committerKyle Mendes <kmendes@fuzzproductions.com>2015-10-28 17:25:44 -0400
commit08e6aa4e6e0344082517ad94d29fb33b81e827a9 (patch)
treee62eaed0c5d6a32e6bb55406967b19bf54575b82 /javascript.html.markdown
parentcbc2daa58d85a0729b898774ff8030f9268a303d (diff)
Adding a small blurb to extend upon string concatination
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