110
rated 0 times
[
115]
[
5]
/ answers: 1 / hits: 17845
/ 8 Years ago, fri, october 14, 2016, 12:00:00
Let's say we have a multiline es6 Template-String to describe e.g. some URL params for a request:
const fields = `
id,
message,
created_time,
permalink_url,
type
`;
Is there any way to have comments inside that backtick Template-String? Like:
const fields = `
// post id
id,
// post status/message
message,
// .....
created_time,
permalink_url,
type
`;
More From » ecmascript-6