In PHP, I’d do something like:

$array = array();
$array[] = "value1";
$array[] = "value2";
$array[] = "value3";

How would I do the same thing in JavaScript?

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *