(function ( ) {
var status = false;
console.log(!status);
})();
This will give you expected output.
"status" is a predefined name of implementation-dependent JavaScript objects, methods, or properties. It is better avoid the identifiers as names of JavaScript variables. If you are using it outside the function then it means you want to implement any other thing by status value.