Report Bug

QusWhat is the correct way to write a JavaScript array? Qusजावास्क्रिप्ट ऐरे लिखने का सही तरीका क्या है?


A. var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
B. var colors = (1:"red", 2:"green", 3:"blue")
C. var colors = "red", "green", "blue"
D. var colors = ["red", "green", "blue"]


Solution
D. var colors = ["red", "green", "blue"]



Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad