Skip to content

Instantly share code, notes, and snippets.

@tarun-nagpal-github
Last active March 19, 2020 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarun-nagpal-github/73383267d7be2a3a7dc5d944120e8664 to your computer and use it in GitHub Desktop.
Save tarun-nagpal-github/73383267d7be2a3a7dc5d944120e8664 to your computer and use it in GitHub Desktop.
Logical and Data Structure Questions
// Increment Questions
x = 5;
y = ++x;
z = y++;
console.log(x);
console.log(y);
console.log(z);
// String and number compare
var a = 100;
var b = 0100;
var c = '10';
var d = 10;
if(a == b){
console.log('Number with prefix equals');
}
if(c == d){
console.log('Number and string equals');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment