To append a string to the end of another string in JavaScript, you can use the concatenation operator +
to join the two strings together.
Here is an example:
117 chars5 lines
Alternatively, you can use the concat()
method like this:
123 chars5 lines
Note that the concat()
method can also take multiple arguments if you want to concatenate more than two strings together.
gistlibby LogSnag