Multiple choice technology web technology What is the correct way to write a JavaScript array? var txt = new Array(1:"tim",2:"kim",3:"jim") var txt = new Array("tim","kim","jim") var txt = new Array:1=("tim")2=("kim")3=("jim") var txt = new Array="tim","kim","jim" Reveal answer Fill a bubble to check yourself B Correct answer Explanation JavaScript arrays can be created with new Array() constructor taking comma-separated values in parentheses. Option B is correct. Options A, C, and D use invalid syntax with colons, equals signs, or missing parentheses.