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 a dataset

1675


What is difference between local and global scope in javascript ?

611


What are the characteristics of javascript ‘strict mode’?

550


What are screen objects?

594


What is the difference between textContent and innerText?

607






What is unobtrusive javascript? How to add behavior to an element using javascript?

598


What is client side programming?

563


Describe the properties of an anonymous function in JavaScript?

808


Why is javascript good for websites?

573


Are namespaces are there in javascript?

593


How are DOM utilized in JavaScript?

754


When would you use var in your declaration and when you wouldn’t?

604


How to add a new property in existing function javascript?

571


How to update a function in javascript?

677


What is the difference between an array and an object?

551