JavaScript Golf Code Problem, please help me to understand it

What is golf code, How can I pass this lesson?

I have no idea about golf. That’s why I can’t complete this lesson. What should I follow now?

Link to the challenge:

Can you copy/paste what solution you currently have, so we can give you some pointers?

When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


Thank you, I have completed this lesson. I was learned from my fault.