Skip to content

Commit 45e46f2

Browse files
committed
initial commit
0 parents  commit 45e46f2

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

the-string-dot-length-property.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
3+
Objective:
4+
Practice using the .length property by calculating the length of
5+
multiple predefined strings and assigning the results to specific variables.
6+
7+
Instructions:
8+
You will be provided with several predefined string variables.
9+
Your task is to:
10+
- Use the .length property to calculate the length of each string.
11+
- Assign the length of each string to its corresponding length variable.
12+
- Ensure that each length variable contains the correct value.
13+
14+
*/
15+
16+
// Starter Code (Pre-filled):
17+
// Predefined strings
18+
let stringOne = "Coding Bootcamp";
19+
let stringTwo = "JavaScript";
20+
let stringThree = "";
21+
22+
// Your task: Assign the length of each string to the corresponding variable
23+
let lengthOne; // Length of stringOne
24+
let lengthTwo; // Length of stringTwo
25+
let lengthThree; // Length of stringThree
26+
27+
// Your code here
28+
29+
30+

0 commit comments

Comments
 (0)