JavaScript-Garden
JavaScript-Garden copied to clipboard
Mistake in the section "The Array Constructor"
original line:
new Array(3); // Result: []
correct line
new Array(3); // Result: [ , , ]
The serialized representation resulting from that expression's evaluation depends very much on the JavaScript engine in which one evaluates it. Compre, say, Node.js vs. Safari.