Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to concatenate several strings in JavaScript?
To concatenate several string, use “Array.join()” method. Here, we will concat the following strings:
John Amit Sachin
Example
You can try to run the following code to concat several strings
<html>
<body>
<script>
var arr = ['Amit', 'John', 'Sachin'];
document.write(arr.join(', '));
</script>
</body>
</html> Advertisements
