Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 455 Bytes
<!doctype html>
<html lang="en">
<title>JavaScript Patterns</title>
<meta charset="utf-8">
/* Title: Array literal
* Description: use array literal notation to avoid potential errors when creating dynamic arrays at runtime
// antipattern
var a = new Array();
// preferred
var a = [];
// References