Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# Stringlength1
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