Зміст курсу
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
Strings 2/5
String length:
We use the length
property to check the length of the string.
console.log(`JavaScript`.length );
Завдання
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.
Завдання
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.
Note: length
property also considers the spaces between the string length.
Все було зрозуміло?
Strings 2/5
String length:
We use the length
property to check the length of the string.
console.log(`JavaScript`.length );
Завдання
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.
Завдання
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.
Note: length
property also considers the spaces between the string length.
Все було зрозуміло?
Strings 2/5
String length:
We use the length
property to check the length of the string.
console.log(`JavaScript`.length );
Завдання
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.
Завдання
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.
Note: length
property also considers the spaces between the string length.
Все було зрозуміло?
String length:
We use the length
property to check the length of the string.
console.log(`JavaScript`.length );
Завдання
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.
Note: length
property also considers the spaces between the string length.