How can we get the length of the string in Javascript?

 Posted by vishalneeraj-24503 on 3/13/2014 | Category: JavaScript Interview questions | Views: 1663 | Points: 40
Answer:

Use the length property of string to return the length.It's an in-built property of string object.
For Example:
alert("Hello".length);

Output will be 5.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response