samedi 25 septembre 2021

I am unable to get the length of string on JavaScript on Google Developer tool

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

On the Google Developer tool




Aucun commentaire:

Enregistrer un commentaire