Javascript in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Before code Javascript, you have to import the Javascript library to the HTML file? True or false?
2. Select output of below block code var i = 0; while (i < 0) { console.log("hi"); }
3. What is the return value of bellow code? function square (x) { return(x * x) }; function cube (x) { return(x
4. What is different between let and var in Javascript?
5. What is property help get or set the content of a div tag in javascript?
6. What loop bellow is the correct syntax?
7. Which is the option below is correct to use WHILE loop?
8. How to declare a variable in javascript?
9. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
10. What does the bellow function do? function doSomething(val) { return val ? 1 : 2; }
11. Javascript is back-end side programming language?
12. Select the correct output of some code below: var age = 10; if(age > 5){ alert("1"); }else if(age < 20){ alert("2"); }
13. Which is the correct command help to check "i" variable is not equal 5?
14. What is the correct syntax to comments one line code in JavaScript?
15. What is the purpose of Javascript?
16. How to call a function has the name "getFullName()"? Select the right answer.
17. Javascript is an object oriented language?
18. How to comment one line in javascript?
19. Javascript and Java are same and nothing different between them.
20. What is the operator allow assign value to a variable?
Next
Previous