File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments