Javascript in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. How many kinds of loops in Javascript?
2. What is function help execute command javascript in plain text?
3. How do you display a message box that says "Hello World"?
4. How to call a function has the name "getFullName()"? Select the right answer.
5. Which is the correct command help to check "i" variable is not equal 5?
6. What is the result of "variable"? var variable; if (""){ variable = true; } else { variable = 55; }
7. Which is the HTML tag allows write javascript code?
8. Is JavaScript case-sensitive?
9. Javascript is an object oriented language?
10. Which is the attribute of <script> tag contains a path of external javascript file name xxx.js?
11. What does the bellow function do? function doSomething(val) { return val ? 1 : 2; }
12. What is the result of the block code below? var numbers = [2, 4, 6, 8]; var counter = 0; var
13. What function help convert a string to a number?
14. We can set any styles to HTML tag with javascript
15. What is isNaN() function in Javascript?
16. What is the result of the block code below? var human = (function () { var publicAPIs = {};
17. What is the result of the below code block? alert(age); var age = 10;
18. How to assign value to the myName variable but still keep old value? Select the right answer.
19. What is the alert value of the below code? var a = parseInt("3abc1"); var b = 3; alert(a * b)
20. What is the mean of += operator in the below code? var fullname = "Jonh"; fullname += " Hug"; alert(fullname);
Next
Previous