From ee1c9924c055ea116477041005fe9606395c8765 Mon Sep 17 00:00:00 2001 From: JavaAndroi Date: Mon, 3 Aug 2026 23:39:44 -0400 Subject: [PATCH] Define strings and calculate their lengths Added predefined strings and assigned their lengths to variables. --- the-string-dot-length-property.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/the-string-dot-length-property.js b/the-string-dot-length-property.js index bfd2591..d0a7d87 100644 --- a/the-string-dot-length-property.js +++ b/the-string-dot-length-property.js @@ -24,7 +24,15 @@ let lengthOne; // Length of stringOne let lengthTwo; // Length of stringTwo let lengthThree; // Length of stringThree -// Your code here +// Your code here +// Predefined strings +let stringOne = "Coding Bootcamp"; +let stringTwo = "JavaScript"; +let stringThree = ""; +// Assign the length of each string to the corresponding variable +let lengthOne = stringOne.length; // Length of "Coding Bootcamp" +let lengthTwo = stringTwo.length; // Length of "JavaScript" +let lengthThree = stringThree.length; // Length of an empty string