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