Learn Basic JavaScript by Building a Role Playing Game - Step 137

Tell us what’s happening:

On Step 137 of Making a Role Playing Game, it says that I should use single quotes around the string, and I have replaced the double quotes with single quotes while putting double quotes around “Arg!” I don’t see what I’m doing wrong.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

  {
    name: "kill monster",
    "button text": ["Go to town square", "Go to town square", "Go to town square"],
    "button functions": [goTown, goTown, goTown],
    text: 'The monster screams \"Arg!\" as it dies. You gain experience points and find gold.'
  }

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 137

The instructions for this step is:

Change the double quotes around the string "The monster screams Arg! as it dies. You gain experience points and find gold." to single quotes ', then add double quotes around "Arg!"

Why you added escape symbols /?
@arthurminsu

1 Like

Ah! I was under the impression that I had to add back slashes to show that the double quotations in text. I understand now. Thanks a bunch!