Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

convert string to boolean js

var myBool = Boolean("false");  // == true

var myBool = !!"false";  // == true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #boolean #js
ADD COMMENT
Topic
Name
5+3 =