Javascript in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Where does the HTML page allow you to write javascript?
2. Select the correct IF condition below of Javascript.
3. Which is the attribute of <script> tag contains a path of external javascript file name xxx.js?
4. What is the result of the below code? var n = 0; var x = 0; while (n < 3) {
5. How to comment one line in javascript?
6. How to insert a multi-line comment in JavaScript?
7. Select output of below block code var i = 0; while (i < 0) { console.log("hi"); }
8. How do you display a message box that says "Hello World"?
9. What is the return value of bellow code? function square (x) { return(x * x) }; function cube (x) { return(x
10. What is different between let and var in Javascript?
11. Select the correct output of some code below: var age = 10; if(age > 5){ alert("1"); }else if(age < 20){ alert("2"); }
12. Javascript and Java are same and nothing different between them.
13. What is the correct syntax to comments one line code in JavaScript?
14. Javascript is back-end side programming language?
15. What is the "variable" value? var variable; if ( true && 12 < 10 ){ variable = 12; } else { variable = 'chicken'; }
16. Does javascript help change some value of the table in any Database?
17. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
18. Before code Javascript, you have to import the Javascript library to the HTML file? True or false?
19. What is the mean of += operator in the below code? var fullname = "Jonh"; fullname += " Hug"; alert(fullname);
20. Which is the correct command help to check "i" variable is not equal 5?
Next
Previous