The "function" and " var" are known as:
The "function" and " var" are known as:
Which of the following is the correct output for the following JavaScript code:
- var x=3;
- var y=2;
- var z=0;
- If(x==y)
- document.write(x);
- elseif(x==y)
- document.write(x);
- else
- document.write(z);
Which of the following is the correct output for the following JavaScript code:
- var x=3;
- var y=2;
- var z=0;
- If(x==y)
- document.write(x);
- elseif(x==y)
- document.write(x);
- else
- document.write(z);
In JavaScript the x===y statement implies that:
In JavaScript the x===y statement implies that:
In the JavaScript, which one of the following is not considered as an error:
In the JavaScript, which one of the following is not considered as an error:
In the following given syntax of the switch statement, the Expression is compared with the labels using which one of the following operators?
In the following given syntax of the switch statement, the Expression is compared with the labels using which one of the following operators?
Choose the correct snippet from the following to check if the variable "a" is not equal the "NULL":
Choose the correct snippet from the following to check if the variable "a" is not equal the "NULL":
Which of the following type of a variable is volatile?
Which of the following type of a variable is volatile?
In JavaScript, what is a block of statement?
In JavaScript, what is a block of statement?
Which of the following is the correct output for the following JavaScript code:
- var grade='C';
- var result;
- switch(grade)
- {
- case'A':
- {
- result+="10";
- break;
- }
- case'B':
- {
- result+=" 9";
- break;
- }
- case'C':
- {
- result+=" 8";
- break;
- }
- default:
- result+=" 0";
- }
- document.write(result);
Which of the following is the correct output for the following JavaScript code:
- var grade='C';
- var result;
- switch(grade)
- {
- case'A':
- {
- result+="10";
- break;
- }
- case'B':
- {
- result+=" 9";
- break;
- }
- case'C':
- {
- result+=" 8";
- break;
- }
- default:
- result+=" 0";
- }
- document.write(result);
Which of the following givenfunctions of the Number Object formats a number with a different number of digits to the right of the decimal?
Which of the following givenfunctions of the Number Object formats a number with a different number of digits to the right of the decimal?
Which of the following variables takes precedence over the others if the names are the same?
Which of the following variables takes precedence over the others if the names are the same?
When there is an indefinite or an infinite value during an arithmetic computation in a program, then JavaScript prints______.
When there is an indefinite or an infinite value during an arithmetic computation in a program, then JavaScript prints______.
- varx=5,y=1
- var obj ={ x:10}
- with(obj)
- {
- alert(y)
- }
- varx=5,y=1
- var obj ={ x:10}
- with(obj)
- {
- alert(y)
- }
Which of the following function of the String object returns the character in the string starting at the specified position via the specified number of characters?
Which of the following function of the String object returns the character in the string starting at the specified position via the specified number of characters?
Which one of the following also known as Conditional Expression:
Which one of the following also known as Conditional Expression:
Which of the following is the correct output for the following JavaScript code:
Int x=8;
if(x>9)
{ document.write(9); }
else
{ document.write(x); }
Which of the following is the correct output for the following JavaScript code:
Int x=8;
if(x>9)
{ document.write(9); }
else
{ document.write(x); }
See the given code of JavaScript and choose the correct output from the following:
- functioncomparing()
- {
- intx=9;
- chary=9;
- if(x==y)
- returntrue;
- else
- returnfalse;
- }
See the given code of JavaScript and choose the correct output from the following:
- functioncomparing()
- {
- intx=9;
- chary=9;
- if(x==y)
- returntrue;
- else
- returnfalse;
- }
Which one of the following is the correct way for calling the JavaScript code?
Which one of the following is the correct way for calling the JavaScript code?
Suppose we have a text "human" that we want to convert into string without using the "new" operator. Which is the correct way from the following to do so:
Suppose we have a text "human" that we want to convert into string without using the "new" operator. Which is the correct way from the following to do so:
When interpreter encounters an empty statements, what it will do:
When interpreter encounters an empty statements, what it will do: