Javascript in Easy level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. How to comment one line in javascript?
2. Which is the HTML tag allows write javascript code?
3. How to call a function has the name "getFullName()"? Select the right answer.
4. How do you display a message box that says "Hello World"?
5. Is JavaScript case-sensitive?
6. What does the bellow function do? function doSomething(val) { return val ? 1 : 2; }
7. Which is the attribute of <script> tag contains a path of external javascript file name xxx.js?
8. Before code Javascript, you have to import the Javascript library to the HTML file? True or false?
9. Javascript is back-end side programming language?
10. We can set any styles to HTML tag with javascript
11. What is the "variable" value? var variable; if ( true && 12 < 10 ){ variable = 12; } else { variable = 'chicken'; }
12. What is different between let and var in Javascript?
13. How to rounding 7.25 number to get an integer?
14. What is the purpose of Javascript?
15. What is the result of the below code? var n = 0; var x = 0; while (n < 3) {
16. What is property help get the value of a textbox?
17. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
18. What is the correct syntax to comments one line code in JavaScript?
19. How to insert a multi-line comment in JavaScript?
20. What function help convert a string to a number?
Next
Previous