Sectie 3. Hoofdstuk 20
single
Strings 2/5
Veeg om het menu te tonen
String length:
We use the length property to check the length of the string.
1console.log(`JavaScript`.length );
Taak
Swipe to start coding
The task is to create a string variable named running and assign the value The horse runs so fast to it. Now check the length or number of characters in the above variable.
Oplossing
Note: length property also considers the spaces between the string length.
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 20
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.