1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-17 20:11:57 +02:00

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

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