logoalt Hacker News

thayne • 12/09/2024 • 2 replies • view on HN

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


Replies

oneeyedpigeon • 12/09/2024

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

➕ show 1 reply
CharlieDigital • 12/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 /* */.