Merge pull request #1866 from Pink401k/javascript

[javascript/en] Adding a small blurb to extend upon string concatenation
This commit is contained in:
Adam Brenecki 2015-10-29 09:02:37 +10:30
commit 7119a37a4e

View File

@ -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