"" => empty string returns false value
"any val" => string returns true value
3<4 => returns true
4<3 => returns false
null => returns false
Syntax
     Boolean(condition);Example
     alert(Boolean(3>4));Example Program:- (Editor)
Editor is Loading...
Advertisement
Tags:
Boolean() method in allinworld99, Boolean() method will return true or false value

 
 
 
 
 
 
 
 
 
 
 
 
0 nhận xét:
Đăng nhận xét