|
| JAVASCRIPT concat() METHOD
In javascript, the concat() method joins two or more strings into one.
The general format is:
firststring.concat(all other strings separated by comma);
Example:
<script type="text/javascript">
var string1="Good ";
var string2="morning ";
var string3="John";
document.write(string1.concat(string2, string3));
</script>
The above will output:
See Also:
|
|