How can I define an array in JavaScript?

Answer Posted / hiren b garasia

4.dense method:
ex: var days=new
Array('Mon','Tue','Wed','Thus','Fri','Sat','Sun');

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to remove the event listener?

527


List out the Mouse Events?

543


Explain typecasting in javascript?

484


What are the different actions that are performed using javascript?

596


What is let keyword in typescript?

539






Can you pass a anonymous function as an argument to another function?

538


How can javascript be used to improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?

514


What is dataview in javascript?

468


What is lazy loading java?

480


What are JavaScript Cookies?

495


What is difference between api and library?

481


What is the difference between the substr() and substring() functions in javascript?

500


What does => mean in node js?

533


How can you get the total number of arguments passed to a function?

604


What are the decodeURI() and encodeURI()?

593