8 lines
217 B
JavaScript
8 lines
217 B
JavaScript
var s1 = "Hello";
|
|
s1 += ", World!";
|
|
print(s1);
|
|
|
|
var s2 = "Goodbye";
|
|
// concat() returns the strings together, but doesn't edit existing string
|
|
// concat can also have multiple parameters
|
|
print(s2.concat(", World!"));
|