
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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