This Quiz contains totally 10 Questions each carry 1 point for you.
1. Which of the following events will you add in the addEventListener() method?
onclick
click
Correct!
Wrong!
2. A string can be converted to an array using which method:
split()
slice()
splice()
piece()
Correct!
Wrong!
3. Does the addEventListener() method allow you to add many events to the same element?
yes
no
Correct!
Wrong!
4. Can we convert the string?
yes
no
Correct!
Wrong!
5. What is the output of this code?
var letters = ['a', 'b'];
letters.slice(1);
console.log(letters);
Array['a','b']
Array['b']
Correct!
Wrong!
6. Can we declare a variable if we have used it before?
yes
no
Correct!
Wrong!
7. Moving declarations to the top of the script is called hoisting
yes
no
Correct!
Wrong!
8. If a function is called with a missing argument, the value of the missing argument is set to undefined
yes
no
Correct!
Wrong!
9. What is the result of the comparison using the == operator?
var a = 5;
var b = "5";
a==b
true
false
Correct!
Wrong!
10. What is the result of the comparison using the === operator ?
var a = 5;
var b = "5";
a===b
true
false
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
JavaScript-Quiz-9
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...