HomeArenaQuiz #6

Quiz #6

99
Created by Coding Artist

Quiz #6

1 / 10

Which of the following is NOT a primitive data type in Javascript?

2 / 10

let a = new String("Coding");
let b = new String("Coding");
console.log(a == b);
What will the above code output to the console?

3 / 10

let arr = [10, 20, 30, 40];
console.log(typeof arr);
What will the above code output to the console?

4 / 10

let letters = ['A', 'B', 'C', 'D', 'E'];
console.log(letters.slice(-2));
What will the above code output to the console?

5 / 10

let a = 2;
let b = 3;
a **= b;
console.log(a);
What will the above code output to the console?

6 / 10

let a = 10 + 10 * 2;
let b = 10 * 2 - 2;
console.log(a, b);
What would the above code snippet output to the console?

7 / 10

let a = "5   ";
console.log(Number(a));
What will the above code output to the console?

8 / 10

let myStr = "Let's search this string.";
let foundStr = myStr.lastIndexOf("S");
console.log(foundStr);

What will the above code output to the console?

9 / 10

let arr1 = [1, 2, 3];
let arr2 = arr1;
arr1[1] = 4;
console.log(arr2);
What will the above code output to the console?

10 / 10

let myStr = "I enjoy Coding. Coding is Fun";
console.log(myStr.search("Coding"));
What will the above code output to the console?

Your score is

The average score is 45%

0%

RELATED ARTICLES

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5 × five =

Most Popular