DEV Community

Discussion on: How would you refactor this JS function?

 
lgrammel profile image
Lars Grammel

javascript needs to be immediately after the 3 backticks, and needs to be followed by a newline.

Thread Thread
 
moopet profile image
Ben Sinclair

It is, and it's exactly how I've done it in all my other posts where it works fine. I'm not sure what's wrong with this one. Anyway, people can imagine what it's like with colours :)