Abschnitt 3. Kapitel 20
single
Strings 2/5
Swipe um das Menü anzuzeigen
String length:
We use the length property to check the length of the string.
1console.log(`JavaScript`.length );
Aufgabe
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.
Lösung
Note: length property also considers the spaces between the string length.
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 20
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen