Computer Science, asked by sagar441, 9 months ago

to check whether the length of string is 4 or greater of java script

Answers

Answered by deepnkumarshah
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