Get Lazy in javascript coding

Lazy ways of coding in javascript.

Array Creation

Normal way

var a = new Array();

Lazy way

var a = [];

String to Number Conversion

Normal way

var num = parseInt('100');

Lazy way

var num = '100'*1;

Number to String Conversion

Normal way

var str = 100.toString();

Lazy way

var str = '' +100; var str = +100;

Object creation

Normal way

var obj = new Object();

var obj = Object.create(null);

Lazy way

var obj = {};