Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Strings 2/5 | Data Types and Variables
Introduction to JavaScript

Pyyhkäise näyttääksesi valikon

book
Strings 2/5

String length:

We use the length property to check the length of the string.

1
console.log(`JavaScript`.length );
copy
Tehtävä

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.

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 20
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

Awesome!

Completion rate improved to 2

book
Strings 2/5

String length:

We use the length property to check the length of the string.

1
console.log(`JavaScript`.length );
copy
Tehtävä

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.

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

close

Awesome!

Completion rate improved to 2

Pyyhkäise näyttääksesi valikon

some-alt