From f28a7007b6a1ae891a202c260166b52cfae7da76 Mon Sep 17 00:00:00 2001 From: EbenAngeline Date: Fri, 17 Apr 2026 10:33:50 -0500 Subject: [PATCH] stringlength --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 21f663d..ba47420 100644 --- a/README.md +++ b/README.md @@ -1 +1,14 @@ -# Stringlength1 \ No newline at end of file +let stringOne = "Coding Bootcamp"; +let stringTwo = "JavaScript"; +let stringThree = ""; + +// Your task: Assign the length of each string to the corresponding variable +let lengthOne; // Length of stringOne +let lengthTwo; // Length of stringTwo +let lengthThree; // Length of stringThree +lengthOne = stringOne.length; +lengthTwo = stringTwo.length; +lengthThree = stringThree.length; +console.log(lengthOne); // 14 +console.log(lengthTwo); // 10 +console.log(lengthThree); // 0