Created
August 22, 2019 17:27
-
-
Save namrata4/1ec25d865a2275fe8818d677adcaa863 to your computer and use it in GitHub Desktop.
Sample JavaScript 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
// Snippet 1 | |
var x; | |
console.log(x) | |
console.log(X) | |
// Snippet 2 | |
var x; | |
console.log(typeof x) | |
// Snippet 3 | |
var x = null; | |
console.log(x) | |
// Snippet 4 | |
var x = null; | |
console.log(typeof x) | |
//Snippet 5 | |
var x = 5; | |
console.log(typeof x) | |
// Snippet 6 | |
var employee = { | |
name: "Tom", | |
department: "IT" | |
}; | |
// Print name of employee to console | |
// console.log(??) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment