"" => empty string returns fake value
"any val" => string returns truthful 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 inwards allinworld99, Boolean() method volition provide truthful or fake value
Tidak ada komentar:
Posting Komentar