JavaScript/Basics: Difference between revisions
wikademia>Extremecircuitz →Operators: WikiMarkup fixes |
|||
| Line 257: | Line 257: | ||
The string operator is used to [[w:concatenate | concatenate]] two strings together. For example: | The string operator is used to [[w:concatenate | concatenate]] two strings together. For example: | ||
<pre> var x = "Hello" + "world!" </pre> | <pre> var x = "Hello " + "world!" </pre> | ||
The above example would result in the variable x equaling "Hello world!". | The above example would result in the variable x equaling "Hello world!". | ||