Javascript in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the purpose of Javascript?
2. Which is the option below is correct to use WHILE loop?
3. Where does the HTML page allow you to write javascript?
4. What is the result of the below block code? var a = 1; alert(a++);
5. The external JavaScript file must contain the <script> tag.
6. What is property help get or set the content of a div tag in javascript?
7. Which company has developed Javascript?
8. What is the result of the below block code? var a = 1; alert(++a);
9. How to insert a multi-line comment in JavaScript?
10. What is the value of x after finish below command? var x = 4 ; for (i = 0; i
11. What is isNaN() function in Javascript?
12. What is different between let and var in Javascript?
13. What is the alert value of the below code? var a = parseInt("3abc1"); var b = 3; alert(a * b)
14. What is the mean of += operator in the below code? var fullname = "Jonh"; fullname += " Hug"; alert(fullname);
15. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
16. How to comment on multiple line codes in Javascript?
17. Which is the HTML tag allows write javascript code?
18. What is the output of this program? var fn22 = 1; function gn22() { if(!fn22) { var fn22
19. Select the correct output of some code below: var age = 10; if(age > 5){ alert("1"); }else if(age < 20){ alert("2"); }
20. Which is the attribute of <script> tag contains a path of external javascript file name xxx.js?
Next
Previous