Javascript in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Is JavaScript case-sensitive?
2. Select the correct output of some code below: var age = 10; if(age > 5){ alert("1"); }else if(age < 20){ alert("2"); }
3. What is the result of the block code below? var numbers = [2, 4, 6, 8]; var counter = 0; var
4. Which company has developed Javascript?
5. Where does the HTML page allow you to write javascript?
6. What is the return value of bellow code? function square (x) { return(x * x) }; function cube (x) { return(x
7. How to call a function has the name "getFullName()"? Select the right answer.
8. How to insert a multi-line comment in JavaScript?
9. Which is the correct syntax to create a function in Javascript?
10. What does the bellow function do? function doSomething(val) { return val ? 1 : 2; }
11. What is the result of the below block code? age = 18; alert(age);
12. What command allow show popup message yes/no question type?
13. What is the mean of += operator in the below code? var fullname = "Jonh"; fullname += " Hug"; alert(fullname);
14. What is property help get the value of a textbox?
15. What function help convert a string to a number?
16. What is the result of the block code below? var human = (function () { var publicAPIs = {};
17. What is the operator allow assign value to a variable?
18. How do you display a message box that says "Hello World"?
19. What loop bellow is the correct syntax?
20. Which is the correct command help to check "i" variable is not equal 5?
Next
Previous