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

Tell us what’s happening:

no se cual es el error. me marca el corchete de abajo en rojo como si eso estubiera mal
esto es lo que me tira.
Sorry, your code does not pass. Try again.

SyntaxError: unknown: Unexpected token (90:0) 88 | function buyWeapon() { 89 | if (gold >= 30) > 90 | } | ^ 91 | 92 | function fightSlime() { 93 |

Your code so far

WARNING

Inside your buyWeapon function, add an if statement to check if gold is greater than or equal to 30 .

function buyWeapon() {
if (gold >= 30)
}

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: 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 83

ya lo solucione. disculpen las molestias

1 Like

Reset the question and try your code again!!