Last active
March 19, 2020 02:08
-
-
Save tarun-nagpal-github/73383267d7be2a3a7dc5d944120e8664 to your computer and use it in GitHub Desktop.
Logical and Data Structure Questions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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