31.Which of the following function of Array object applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value?
Explanation:reduceRight() − Applies a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value.
var a = 'letsfind';
var b = 'course';
var c = a/b;
var a = 1;
Explanation: document.write(a--); will print 1 and after than it will decrement the variable a value to 0 , next line document.write(a); will print 0.
document.write("1 plus 1 is " + 1 + 1);
37. Which of the following method checks if its argument is not a number?
Explanation:The Number.isNaN() method determines whether a value is NaN (Not-A-Number). This method returns true if the value is of the type Number, and equates to NaN. Otherwise it returns false.
38. What if you use parseInt() to convert a string containing decimal value?
alert (typeof new Date() );
Explanation: The typeof is an operator keyword which is used to get a type at the compile-time. Or in other words, this operator is used to get the System.Type object for a type.
40. What if we put ++ operator inside if condition? find the output of below code
var a = 10;
if(a == a++)
Explanation:During initialization the value of variable a is 10.But after if condition it becomes 11 due to "a++" in if condition.
Also check :