I am an beginner of JavaScript and upon practicing some code on Google developer tool to get the length of the string by using .lenght , However I only get the result showing undefined. Any help will be greatly appreciated. Here is my code:
var myName = ("jamal");
myName.lenght;
Result shows: undefined
Aucun commentaire:
Enregistrer un commentaire