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

Tell us what’s happening:

Describe tu problema en detalle aquí.

Your code so far

" The text of your first .stat element should still be XP: 0 ."
no se cual es el erro. ya que el 0estan envuelto en el span como me dice pero no me toma el codigo

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

<!-- User Editable Region -->

            <span class="stat" >
               XP:<strong><span id="xpText">0</span></strong>
                </span>
            <span class="stat" >
                Health:<strong><span id="healthText">100</span></strong> 
                </span>
            <span class="stat" >
                Gold:<strong><span id="goldText">50</span></strong>
                </span>

<!-- User Editable Region -->

        </div>
        <div id="controls"></div>
        <div id="monsterStats"></div>
        <div id="text"></div>
    </div>
</body>
</html>

Your browser information:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

Hello @r0ssty !

Cada código debe estar en una sola línea.

Ejemplo:

<p><span>texto: <span>texto</span></span></p>.

Además, coloque un espacio después de los dos puntos : para cada uno de los códigos.

Espero que esto te ayude. ¡Feliz codificación!

Hello @r0ssty !

Each code should be on one line.
Example:

<p><span>text: <span>text</span></span></p>.

As well, place a space after the : colon.

I hope this helps you.

Happy coding!

2 Likes

muchisimas gracias. si funciono. eres el mejor

1 Like

¡De nada!
Estoy feliz de ayudarte a progresar en tu viaje de codificación.
¡Sigan con el buen progreso y la feliz codificación!

You are welcome!I am happy to help you progress in your coding journey. Keep up the good progress and happy coding!