logoalt Hacker News

thayne12/09/20242 repliesview on HN

So how do you add a comment in the middle of an array?


Replies

oneeyedpigeon12/09/2024

How do you add a comment in the middle of a keyword in JavaScript?

show 1 reply
CharlieDigital12/09/2024

These two are not remotely the same thing. You can have an array declared on multiple lines and add a comment to specific values. Or even inline with the value /* */.