Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Object and array literals are faster than constructors

View constructors.js
1 2 3 4
function usingConstructors( string )
{
var a = new Array(), o = new Object();
}
View constructors.js
1 2 3 4
function usingLiterals ( string )
{
var a = [], o = {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.