// Practice Set · JS Strings · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: JS Strings

What does this log?

let name = "cat";
name[0] = "b";
console.log(name);
Question 2 of 5 from: JS String Templates

A backtick string can span several lines without using \n.

Question 3 of 5 from: JS String Methods

What does this log?

let s = "cat and cat";
console.log(s.replace("cat", "dog"));
Question 4 of 5 from: JS String Methods

What does this log?

console.log("5".padStart(3, "0"));
Question 5 of 5 from: JS String Search

What does this log?

let email = "sam@site.com";
console.log(email.slice(email.indexOf("@") + 1));
Ready to submit?

Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.