In the following javascript code there is [] being assigned as the value of a variable, what does it mean?
var openTollDebug = [];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
it is an array literal. It is not quite the same as declaring
new Array()– the Array object can be overwritten in JavaScript, but the array literal can’t. Here’s an example to demonstrate