a) valueOf()
b) valueOfString()
c) getString()
d) none of the mentioned
Answer: a
Explanation: valueOf() returns true if the specified string contains “true” in lower or uppercase and false otherwise.
Related Posts
JavaScript is a _______________ language.
What will be the output of the following JavaScript code?
function compare()
{
int a=1;
char b=1;
if(a.tostring()===b)
return true;
else
return false;
}The snippet that has to be used to check if “a” is not equal to “null” is _________
What will be the output of the following JavaScript code?
int a=1;
if(a!=null)
return 1;
else
return 0;The type of a variable that is volatile is _______________
Which of the following Attribute is used to include External JS code inside your HTML Document?
The escape sequence ‘\f’ stands for _________
Join The Discussion