What will be the result of following code snippet?
  
  var s = new String("");
    if (s) alert(true);
    else alert(false);
Explanation
JavaScript object are always truthy.

Mobile Beta

Get it on Google Play