null - , , undefined, .
var a; // declared but undefined, has nothing in it; does not mean its null
var b = null; // declared and defined as null;
Each function in javascript has an implicit return: return;like in any other language, to mark the end of a function. Thus, it returns without anything, that if you try to log in, it will give youundefined
source
share