HomeArenaQuiz #8

Quiz #8

106
Created by Coding Artist

Quiz #8

1 / 10

let a = "1" - "greet";
if (a == true) {
console.log("Hey");
} else if (a == false) {
console.log("Hello");
} else {
console.log("Goodbye");
}
What will the above code output to the console?

2 / 10

let a;
let b;
console.log(a + b);
a = 5;
b = 6;
What will the above code output to the console?

3 / 10

let x = 5;
let y = 4;
console.log(5 || 4);
What will the above code output to the console?

4 / 10

let x = 5;
let y = 4;
console.log(5 && 4);
What will the above code output the console?

5 / 10

let x = null;
let y = 4;
console.log(x || y);
What will the above code output to  the console?

6 / 10

let arr = [1, 2, 3, 4];
let len = arr.length;
console.log(arr[len]);

7 / 10

let myDetails = {
        firstName: "Mitali",
        lastName: "J",
};
console.log(myDetails[firstName]);
What will the above code output to the console?

8 / 10

let a = 1;
let b = "true";
console.log(a == b);
What will the above code output to the console?

9 / 10

let a = 10;
a = "hello";
console.log(typeof a);
What will the above code output to the console?

10 / 10

let a = "1";
let b = true;
console.log(a == b);
What will the above code output to the console?

Your score is

The average score is 44%

0%

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

fifteen + nineteen =

Most Popular