Well done!

You have completed Strings in JavaScript: Concepts and Exemplifications Quiz!

Quiz Question 1 of 5

If a string is "Hello World!", which method call would be most appropriate to replace the first occurrence of a space character ' ' with a hyphen '-', and what would be the resulting string?

Choose the correct answer below:

Skip Quiz Review Instruction