Course Content
Javascript Full Course
0/87
JavaScript Course
About Lesson
Concat Array:

The concat() method is used to merge two or more arrays together. This method does not alter the original arrays passed as arguments.

Example: 

  var x = [“Ram”, “Arman”, “Raghav”, “Manav”];

  var y = [“Riya”, “Diya”, “Amit”];

   x.concat(y);

Join Array:

The join() method is used to join the elements of an array into a string. The elements of the string will be separated by a specified separator and its default value is a comma( , ).

Example: 

  var x = [“Ram”, “Arman”, “Raghav”, “Manav”];

   x.join(“ – “);

Exercise Files
No Attachment Found
No Attachment Found
Join the conversation

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.