Javascript in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. Javascript and Java are same and nothing different between them.
2. What is function help execute command javascript in plain text?
3. What does the bellow function do? function doSomething(val) { return val ? 1 : 2; }
4. Which statements below are correct about Javascript?
5. How many kinds of loops in Javascript?
6. The external JavaScript file must contain the <script> tag.
7. How to check the age variable is a number or not? var age ="12abc";
8. What is the result of the below block code? var a = 1; alert(++a);
9. What is the result of the block code below? function first() { window.age = 15; } function second() {
10. What is the result of a variable when execute command bellow? var a = "I'm " + true; alert(a);
11. Which company has developed Javascript?
12. What is the result of the below code block? alert(age); let age = 10;
13. What is the output of this program? var y = (function (x){ var x= 1 + x; return x;
14. Select output of below block code var i = 0; while (i < 0) { console.log("hi"); }
15. What is the correct syntax to comments one line code in JavaScript?
16. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
17. How can we write anything into web page in Javascript?
18. What function help convert a string to a number?
19. What is the result of "variable"? var variable; if (""){ variable = true; } else { variable = 55; }
20. How do you display a message box that says "Hello World"?
Next
Previous