JavaScript Reflection Preserves Comments 0 ▲ Jake Worth 1 hour ago · Tech · hide · 0 comments In JavaScript reflection with .toString(), comments are preserved. const hello = () => { // returns "Hello" return 'Hello'; }; hello.toString(); // '() => {\r // returns "Hello"\r return "Hello";\r}' Note the comment in the returned string. No comments yet. Log in to reply on the Fediverse. Comments will appear here.