Javascript in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. How can we write anything into web page in Javascript?
2. How to comment one line in javascript?
3. Before code Javascript, you have to import the Javascript library to the HTML file? True or false?
4. How to declare a variable in javascript?
5. Is JavaScript case-sensitive?
6. What is the result of the block code below? var numbers = [2, 4, 6, 8]; var counter = 0; var
7. Select the correct output of some code below: var age = 10; if(age > 5){ alert("1"); }else if(age < 20){ alert("2"); }
8. Select the correct IF condition below of Javascript.
9. What is different between let and var in Javascript?
10. Javascript and Java are same and nothing different between them.
11. What loop bellow is the correct syntax?
12. What does the bellow function do? function doSomething(val) { return val ? 1 : 2; }
13. How to comment on multiple line codes in Javascript?
14. Which is the right syntax that allows import an external file javascript into an HTML page?
15. How to check the age variable is a number or not? var age ="12abc";
16. We can set any styles to HTML tag with javascript
17. Javascript is an object oriented language?
18. What is the purpose of Javascript?
19. Which is the correct command help to check "i" variable is not equal 5?
20. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
Next
Previous