What is a way to append a value to an array?

Answer Posted / gayathri

its a way to append a value to an array
arr[arr.length] = value;

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of let & const in javascript?

505


What is javascript and its advantages?

535


How to get inner html of an element in javascript?

473


Is javascript easier than java?

473


How to show progress bar while loading using ajax call?

562






Is javascript insecure?

510


How to make a array as a stack using javascript?

517


How do you write an if statement in javascript?

472


Explain the difference between call() and apply()?

506


Which is better for or foreach in javascript?

454


What is a class in javascript?

481


How to call a function inside a function in javascript?

488


Why do you need javascript?

479


How do I open javascript on my iphone?

487


What's Prototypes for JavaScript

1710