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

Tell us what’s happening:

I couldn’t figure out how to call the function without using let and const. Can you help me?

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

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 (Macintosh; Intel Mac OS X 10_15_7) 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 111

a function doesn’t need let or const to be called
if you have a function called func you call it like this: func()

what is your code? without it we can’t give specific help

I was strugling with this also, found the solution after thousand tries , enjoy
MOD EDIT: solution redacted

Hey @IrfanFarooq, it is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

Thanks for the information, I will try to follow these guidelines in future.

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