Below code demonstrates the usage of array method:
var Arr2 = ["Agra","Bengaluru"]
console.log(Arr1.concat(Arr2));
Refer: https://docs.microsoft.com/en-us/scripting/javascript/reference/concat-method-array-javascript
Practice at: http://jsbin.com
- concat
var Arr2 = ["Agra","Bengaluru"]
console.log(Arr1.concat(Arr2));
Refer: https://docs.microsoft.com/en-us/scripting/javascript/reference/concat-method-array-javascript
Practice at: http://jsbin.com
No comments:
Post a Comment