Hacker News new | ask | show | jobs
by thayne 556 days ago
So how do you add a comment in the middle of an array?
2 comments

How do you add a comment in the middle of a keyword in JavaScript?
I often want to comment individual array values to give more context or describe provenance. I don't think I've ever wanted to add a comment in the middle of a keyword.
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 /* */.