to check whether the length of string is 4 or greater of java script
Answers
Answered by
1
// Taking some strings
var x = 'geeksforgeeks';
var y = 'gfg';
var z = '';
// Returning the length of the string.
document.write(x.length + "<br>");
document.write(y.length + "<br>");
Similar questions