HomeArenaQuiz #10

Quiz #10

197
Created by Coding Artist

Quiz #10

1 / 10

var arr = [1, 2, 3, 4];
var res = arr.map(function (a, i) {
  return "a";
});
console.log(res);
What will the above code output to the console?

2 / 10

var a = 10;
var a = 20;
console.log(a);
What will the above code output to the console?

3 / 10

let person = {
  name: "Mitali",
  a: 26,
};
var a = "name";
console.log(person["a"]);

What will the above code output to the console?

4 / 10

let person = {
  name: "Mitali",
  a: 26,
};
var a = "name";
console.log(person[a]);
What will the above code output to the console?

5 / 10

if ([] || false) {
  console.log("Hi");
}
What will above code output to the console?

6 / 10

let num = 1.148;
let val = num.toFixed(6);
console.log(val);
What will the above code output to the console?

7 / 10

let student = {
  name: "Jim",
  age: 12,
  score: 80,
};
console.log(Object.values(student));

8 / 10

console.log([] && false);
What will the above code output to the console?

9 / 10

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

10 / 10

if (null)
console.log("Hello World");
console.log("Hi");
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

1 × 2 =

Most Popular