JavaScript Practice Exercise Three

Question 1 :
What will be the output of following comparison operator?

let x = 15;
let y = 20;
console.log( x != y )

Output:
Question 2 :
What will be the output of following comparison operator?

let x = 9
let y = '9'
console.log( x === y )

Output:
Question 3 :
What will be the output of following comparison operator?

let x = 37
let y = '37'
console.log( x == y )

Output:
Question 4 :
What will be the output of following comparison operator?

let x = 37
let y = '37'
let y = parseInt(y)
console.log( x === y )

Output:
Question 5 :
What will be the output of following comparison operator?

let x = 99
let y = 99
console.log( x > y )

Output:
Question 6 :
What will be the output of following comparison operator?

let x = 102
let y = 102
console.log( x >= y )

Output:
Question 7 :
What will be the output of following comparison operator?

let x = 67
let y = 99
console.log( x < y )

Output:
Question 8 :
What will be the output of following comparison operator?

let x = 67
let y = 99
let x = y
console.log( x < y )

Output:
Question 9 :
What will be the output of following comparison operator?

let x = 67
let y = 99
let x = y
console.log( x <= y )

Output:
Question 10 :
Through user input box, user stores 20 in variable myAge. What will be output of following code?

let myAge = prompt("Please enter your age");

let yourAge = 20

console.log(myAge === yourAge);


Output :