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