Hvernig á að athuga hvort strengurinn er tómur í handrit
Kóða dæmi
0
0
javascript athuga hvort strengurinn er tóm
var string = "not empty";
if(string == ""){
console.log("Please Add");
}
else{
console.log("You can pass"); // console will log this msg because our string is not empty
}