Kizspy | Question: 24
(Choose 1 answer)
Consider the code:
<script>
function createArray(){MISSING CODE;
} </script>
<input type="button" value="getValue" onclick="createArray()">
What code is added at [MISSING CODE] to create the array with items: 1,2,3,4?
A. var arr={1,2,3,4}
B. var arr=[1,2,3,4]
C. var arr={1,2,3,4}
D. var arr[]={1,2,3,4}
FUOVERFL