Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check string empty

let str = "";
if (Boolean(str))
  console.log("This is not an empty string!");
else
  console.log("This is an empty string!");
  
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #javascript #check #string #empty
ADD COMMENT
Topic
Name
6+2 =