Skip to content

Instantly share code, notes, and snippets.

@prmishra
Last active May 26, 2019 14:44
Show Gist options
  • Save prmishra/98b20f728f0f88932cbaa94a6555d42d to your computer and use it in GitHub Desktop.
Save prmishra/98b20f728f0f88932cbaa94a6555d42d to your computer and use it in GitHub Desktop.
(function(){
var a = b = 3;
})();
console.log("a defined? " + (typeof a !== 'undefined'));
console.log("b defined? " + (typeof b !== 'undefined'));
// node script.js
@sagar-more
Copy link

(function(){
  var a,b;
  a=b = 3;
})();

console.log("a defined? " + (typeof a !== 'undefined'));
console.log("b defined? " + (typeof b !== 'undefined'));

@muhammad-amin-8102
Copy link

(function(){
var a, b;
a = b = 3;
})();

console.log("a defined? " + (typeof a !== 'undefined'));
console.log("b defined? " + (typeof b !== 'undefined'));
// node script.js

@ashvini-maurya
Copy link

(function(){
  var a,b;
  a=b = 3;
})();

console.log("a defined? " + (typeof a !== 'undefined'));
console.log("b defined? " + (typeof b !== 'undefined'));

@Piyush-85
Copy link

(function(){
var a,b;
a=b = 3;
})();

console.log("a defined? " + (typeof a !== 'undefined'));
console.log("b defined? " + (typeof b !== 'undefined'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment