JS

The typeof null and isObject() short story

null is a primitive but typeof(null) return “object” Reason? In short: it is bug in ECMAScript, and the type should be null. This is a official mistake in the language, carefully kept from 90’s for compatibility. Examples:

How weRead more…

Upgrade to NodeJS 4, the easy steps

NODE INSTALL/UPDATE: Download 4.2.1 from https://nodejs.org/en/ Node.js it will be at:

npm :

Make sure that /usr/local/bin is in your $PATH using:

INSTALL NWJS:

INSTALL/UPDATE CORDOVA:

—=-=- Validate build execution (if this apply on yourRead more…