Diamond Dozen help - Javascript or any

Welcome to the forum! This is a family-friendly place where coders can share bugs, ask for help on any CodeCombat level (don’t forget to post your code correctly), or just hang out with other coders. But before you proceed, please check out our guidelines: this topic.
Have a great time! :partying_face:

We are not allowed to give out solutions, only clues. This way the person can think it out themselves and not cheat. Please delete that code and put in its place a few hints and corrections. Thanks, and enjoy your time here!