comment in javascript template string code example
Example 1: how to comment a template string
const fields = `
id,${ /* post id */'' }
message,${ /* post status/message */'' }
created_time,
permalink_url,
type
`;
console.log(fields);
ugly and effective (like ummm ... some certain programming languages)
Example 2: string literals javascript
`string text`
`string text line 1
string text line 2`
`string text ${expression} string text`
tag`string text ${expression} string text`