programming-examples/js/String/Check whether a string is blank or not.js

8 lines
238 B
JavaScript
Raw Normal View History

2019-11-15 12:59:38 +01:00
is_Blank = function(input) {
if (input.length === 0)
return true;
else
return false;
}
console.log(is_Blank(''));
console.log(is_Blank('abc'));