This Quiz contains totally 10 Questions each carry 1 point for you.
false
true
Correct!
Wrong!
2. What is correct commenting in JavaScript?
/*This is a comment*/
Correct!
Wrong!
3. How do you declare a JavaScript variable x?
define x;
def x;
variable x;
var x;
Correct!
Wrong!
4. To get the data type of some variable you will use:
dataType
typeof
Correct!
Wrong!
5. When we don’t assign a value to a variable it will be?
null
undefined
" "
NAN
Correct!
Wrong!
6. In JavaScript can we pass functions as arguments to other functions?
yes
No
Correct!
Wrong!
7. Would the next code cause the error?
yes
no
Correct!
Wrong!
8. Can you guess the return of the following code:
true
false
NAN
undefined
Correct!
Wrong!
9. How do you write “Eureka” in an alert box?
msg("Eureka");
alert("Eureka");
msgBox("Eureka");
alertBox("Eureka");
Correct!
Wrong!
10. What is the correct way to write a JavaScript array?
var num=[1,2,3];
var num=(1,2,3);
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
Ignore & go to results
JavaScript-Quiz-7
You got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...