1.

What is the correct syntax to create an array in java script?

A. Names = new Array(“tom”‚ “jerry”);
B. Names = new Array(1 : “tom”, 2 : “jerry”);
C. Names = new Array { “tom”, “jerry” };
D. Names = new Array [ “tom”, “jerry” ];
Answer» B. Names = new Array(1 : “tom”, 2 : “jerry”);


Discussion

No Comment Found