Computer Science, asked by udaysanjaysharma, 8 months ago

write a javascript program to accept any string from user count the length of string and display in alert()​

Answers

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