Template literals | Template strings

Template literals

Template literals allows us to embed expressions to our string literals. We can use multi-line strings and string interpolation features with them.

ECMAScript – Trailing Commas

JavaScript allowed trailing commas in array literals since the beginning. Trailing commas in other places have added in the later edition of ECMAScript. What is trailing comma & why? Trailing commas is also called as final commas. It can be used while if you are adding new parameters or property to JavaScript code. If you…

%d bloggers like this: