Answers for "how to create a mixed array in javascript"

0

how to create a mixed array in javascript

The array in JavaScript can be created by using var keyword followed by array name as shown below:

var NumArr = [1,2,3,4,5];

You can create JavaScript array with mixed data types as well, for example, array containing both numbers and strings:

var MixArr = [1, “Mixed”, 2, “Array”];
Posted by: Guest on June-08-2021

Code answers related to "how to create a mixed array in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language