HomeArenaQuiz #1 | Javascript Quiz

Quiz #1 | Javascript Quiz

0%
225

Quiz #1

1 / 10

var arr = [1, 2, 3, 4, 5];
var arr1 = arr;
arr1.push(6);
console.log(arr);

2 / 10

console.log(dog);
var dog = "Daisy";

What will the above code output to console?

3 / 10

let p, q;
[p, q] = [1];
console.log(p, q);

4 / 10

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

5 / 10

greet();
function greet() {
  console.log("Hello");
}
function greet() {
  console.log("Hi");
}
What will the above code output to the console?

6 / 10

console.log(null && 45);
What will the above code output to the console?

7 / 10

var a = [1, 2];
var b = [3, 4];
var c = [...a, ...b];
console.log(c);

8 / 10

let myFunc = function () {
  console.log("hello 1");
};
let myFunc = function () {
  console.log("hello 2");
};
myFunc();

9 / 10

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

10 / 10

var arr = [1, 2, 3, 4, 5];
var arr1 = [...arr];
arr1.push(6);
console.log(arr);

Your score is

The average score is 45%

0%

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5 + ten =

Most Popular