Javascript in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the result of the block code below? function getNumber(x){ delete x; return x; } var result = getNumber(1); alert(result);
2. What loop bellow is the correct syntax?
3. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
4. What is the result of the below block code? var a = 1; alert(a++);
5. What is property help get or set the content of a div tag in javascript?
6. Which is the right syntax that allows import an external file javascript into an HTML page?
7. What is the alert value of the below code? var a = parseInt("3abc1"); var b = 3; alert(a * b)
8. Select the correct option when While loop bellow is finished? var i = 2 ; while (i <= 10) {
9. How to declare a variable in javascript?
10. How to check the age variable is a number or not? var age ="12abc";
11. Select the correct IF condition below of Javascript.
12. What function help convert a string to a number?
13. Does javascript help change some value of the table in any Database?
14. What is the output of the block code below? var a =+ '10'; var b = 2 alert(a + b);
15. What is the result of a variable when execute command bellow? var a = "I'm " + true; alert(a);
16. What is the result of the below code? var i = 2; var count = 0; for (; i < 6;
17. What is the output of this program? var y = (function (x){ var x= 1 + x; return x;
18. How many kinds of loops in Javascript?
19. What is the correct syntax to comments one line code in JavaScript?
20. How to insert a multi-line comment in JavaScript?
Next
Previous