HomeArenaQuiz #2

Quiz #2

140
Created on By Coding Artist

Quiz #2

1 / 10

let a = null;
let b = null;
let c = a + b;
console.log(c);

2 / 10

 var myMonth = "1";
 var month = myMonth === 0 ? "Jan" : myMonth === 1 ? "Feb" : myMonth === 2 ? "Mar : "NA";
 console.log(month);
What will the above code output to the console?

3 / 10

let x = Number("123abc");
console.log(x);
What will the above code output to the console?

4 / 10

var p = 5;
var q = p++;
console.log(q);
What will the above code output to the console?

5 / 10

console.log(age);
let age = "25";

What will the above code output to console?

6 / 10

let a = Math.max();
console.log(a);
What will the above code output to the console?

7 / 10

let x, y;
[x = 1, y = 3] = [5];
console.log(x, y);

8 / 10

var myAr = [10, 20, 30, 40];
var newMyAr = [0, ...myAr, 50];
console.log(newMyAr);

9 / 10

function myFunc() {

    return [10, 20, 30];
}
[i, , j] = f1();
console.log(i, j);
What will the above code output to the console?

10 / 10

let a = true + false + true * 5;
console.log(a);
What will the above code output to the console?

Your score is

The average score is 38%

0%

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

twenty + twenty =

Most Popular