write a javascript program to accept any string from user count the length of string and display in alert()
Answers
Answered by
0
var str = "Hello World!";
var n = str.length;
The length property returns the length of a string (number of characters).
The length of an empty string is 0.
Similar questions
English,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Math,
8 months ago
English,
8 months ago