Strings 2/5
String length:
We use the length
property to check the length of the string.
1console.log(`JavaScript`.length );
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.
Ratkaisu
Note: length
property also considers the spaces between the string length.
Kiitos palautteestasi!
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 2
Strings 2/5
Pyyhkäise näyttääksesi valikon
String length:
We use the length
property to check the length of the string.
1console.log(`JavaScript`.length );
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.
Ratkaisu
Note: length
property also considers the spaces between the string length.
Kiitos palautteestasi!
Awesome!
Completion rate improved to 2single