Javascript in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the output of this program? function main() { try { f77(); } catch(e) { console.log(e); }; try
2. What is the result of the below block code? age = 18; alert(age);
3. What is the alert value of the below code? var a = parseInt("3abc1"); var b = 3; alert(a * b)
4. What is the data type of age variable below? var age =+ "50" alert(typeof(age));
5. Which is the attribute of <script> tag contains a path of external javascript file name xxx.js?
6. What is the result of the block code below? function first() { window.age = 15; } function second() {
7. What is the return value of bellow code? function square (x) { return(x * x) }; function cube (x) { return(x
8. How to check the age variable is a number or not? var age ="12abc";
9. What is the result of the below code? var n = 0; var x = 0; while (n < 3) {
10. Select the correct output of some code below: var age = 10; if(age > 5){ alert("1"); }else if(age < 20){ alert("2"); }
11. What is function help execute command javascript in plain text?
12. How to rounding 7.25 number to get an integer?
13. How to comment on multiple line codes in Javascript?
14. What is the result of the below block code? var a = 1; alert(a++);
15. What is the result of the below code? while (i < 5) { i++; if (i == 3) {
16. What is property help get or set the content of a div tag in javascript?
17. Select the correct IF condition below of Javascript.
18. How to call a function has the name "getFullName()"? Select the right answer.
19. What is the output of this program? var a23 = 1; function b24(){ a23 = 10; return; function a23() {
20. What is the result of the block code below? var human = (function () { var publicAPIs = {};
Next
Previous