concat()
is a method in used in javascript to concatinate two strings or two arrays.
- it does not change the existing string/arrays
- it returns a new string/array
- it joins two or more strings/array
below is an example of string concatination
lets look at how we can use concat()
method to join two arrays
Top comments (0)