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

Tell us what’s happening:

Describe your issue in detail here.
Im noticing there is a consistent issue in this course with the evaluation of answers/solutions. This is one example. I f you check , my answer is correct with correct formatting and indentation but it seems the system is expecting something else that is probably wrong way of writing correcting code. This is not an issue for someone like me who already understands js html css etc , but for a beginner this could bring confusion and also waste a lot of time trying to figure out whats wrong. Kindly fix this with the system to improve the whole course.

Your code so far

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet" href="./styles.css">
    <title>RPG - Dragon Repeller</title>

<!-- User Editable Region -->

    <div id="game">
      <div id="stats">
        <span class="stat">XP: 0</span>
        <span class="stat">Health: 100</span>
        <span class="stat"> Gold: 50.</span>
      <div id="controls"></div>
      <div id="monsterStats"></div>
      <div id="text"></div>

<!-- 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/ Safari/537.36

Challenge Information:

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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

It looks like you accidentally added a period here

once you remove that, then the test will pass

hope that helps

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.