0
How to add string function exactly?
I created a code with Javascript: https://code.sololearn.com/WK36M9gkTNY8/# I cannot understand how to correct the length function. Please help me if you can.
3 Answers
+ 1
use name.length
+ 1
var name=prompt("please enter your name","");
var letters=name.length;
alert("Your name has "+letters+" letters")
+ 1
Thanks guys it is working absolutely perfectly.
Thank you for your support.