![]() |
What are some other ways to write JavaScript arrays?
Hello,
Are there other formats and configurations to write a JavaScript array? Note that there will be at least 100 pairs. Code:
var thisArray = ["soda", "cake", "burger", "fries", "olive"]; In advance, I appreciate any help to this matter. |
Better:
Code:
function pair( a, b )Code:
// note the curly braces in place of square brackets! |
| All times are GMT +1. The time now is 04:27 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.