Javascript in Normal level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the result of the block code below? function first() { window.age = 15; } function second() {
2. What is the result of the below code? var i = 2; var count = 0; for (; i < 6;
3. How to Look for the biggest number between two numbers?
4. What is the output of this program? var fn22 = 1; function gn22() { if(!fn22) { var fn22
5. What is the value of x after finish below command? var x = 4 ; for (i = 0; i
6. What is the difference between == and === compare operators in Javascript?
7. What is isNaN() function in Javascript?
8. How to assign value to the myName variable but still keep old value? Select the right answer.
9. Select the correct option when While loop bellow is finished? var i = 2 ; while (i <= 10) {
10. Select the right options about function in Javascript
11. What is the result of a variable when execute command bellow? var a = "I'm " + true; alert(a);
12. How many kinds of loops in Javascript?
13. What is the output of this program? var a23 = 1; function b24(){ a23 = 10; return; function a23() {
14. What is function help execute command javascript in plain text?
15. What is the result of the below block code? var a = 1; alert(++a);
16. What is the "count" value? var count = 0; for(var i = 0; i < 10; i++){ ++count; if(i ==
17. What is the result of the below code block? alert(age); var age = 10;
18. What is the result of the below function: function test() { if(true) { var a
19. What is the result of the block js code below? function getSum() { var a = 7;
20. What is the result of "variable"? var variable; if (""){ variable = true; } else { variable = 55; }
Next
Previous