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

Tell us what’s happening:

Hi freeCodeCamp coders, I’ve find solution to "update innerText of goStore() function

/* file: script.js */

// Here is the solution!

MOD Solution removed

// 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/131.0.0.0 Safari/537.36 Edg/131.0.0.0

Challenge Information:

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

Hi @Abdulhamidsalisu

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.

If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

Happy coding

1 Like