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

Answer Posted / dr. shveta

arr[arr.len]=newValue;

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some design patterns in javascript?

475


How do I turn off javascript in chrome?

468


What are local variables in javascript?

487


What is js injection?

489


java pgme for class members hours:minutes:seconds then the constructor expects milliseconds as assignment and initialize data members the members function print hh:mm:ss 90,000 milliseconds passed in constructor then the output is 00:01:30

1523






What is enum with example?

454


Does javascript support foreach loop?

516


What are self invoking functions?

508


Difference between undefined and undeclared variables?

517


Explain the difference between “==” and “===”?

524


What is the difference between Local Storage and Session Storage?

551


Why would you use a sticky session?

517


How to get value from dropdown (select) control?

571


Is javascript becoming obsolete?

476


What does trim stand for?

483