Questions tagged as 'declaração-de-variável'

6
answers

What's the difference between declaring an array with "array ()" and "[]" in JavaScript?

In JavaScript we can declare an array in two ways: var matriz = new Array(); and var matriz = []; What is the difference between the two and what are their consequences? This question is being posed for the purpose of documenting...
asked by 04.03.2014 / 21:48