Below code demonstrates the usage of array method:
console.log(Arr1);
Arr1.reverse()
console.log(Arr1);
Refer: https://docs.microsoft.com/en-us/scripting/javascript/reference/reverse-method-javascript
Practice at: http://jsbin.com
- reverse
console.log(Arr1);
Arr1.reverse()
console.log(Arr1);
Refer: https://docs.microsoft.com/en-us/scripting/javascript/reference/reverse-method-javascript
Practice at: http://jsbin.com
No comments:
Post a Comment