Syed Sadiq Ali
Discover What's Possible
Pages
C#
.Net Basics
SQL
JavaScript
AngularJS
Online Test
Popular Posts
Learn .Net Easily
Angular 1 vs Angular 2
AngularJS Test
Sunday, 20 November 2016
JavaScript Test
JavaScript
JavaScript is ECMAScript
False
True
May be
All of the above
What is null in JavaScript?
Null means empty string value.
Null means absence of a value.
Null means unknown value.
Null means zero value.
Variable in JavaScript declared with which of the following keyword?
int
Var
string
All of the above
Which of the followings are primitive data types in JavaScript?
string
Number
Boolean
All of the above
Which of the following is NOT a JavaScript object?
var obj = {};
var obj = { name: "Steve"};
var obj = { name = "Steve"};
var obj = new Object();
Which of the following is NOT a correct way of declaring an array in JavaScript?
var arr = [1, "two", 3 , 4 ];
var arr = new Array();
var[] arr = new Number(){5];
None of the above
What will 1 == "1" return?
True
False
0
1
How to handle error in JavaScript?
By writing error proof code.
By using eval().
By using if-else block
By using try, catch & finally block.
What will be the output of the following JavaScript code? for(var x = 1; x < 5; x++) c
11111
12345
1234
None
Which of the following is a valid JavaScript function?
var myFunc = function myFunc(){ };
function myFunc(){ };
function(){ };
function myFunc = { };
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment