Modern JavaScript Videos
About Lesson

In this lesson we want to learn about JavaScript Trailing Commas, In JavaScript, trailing commas are commas that appear after the last item in an array, object or function parameter list. Trailing commas are optional but they can be useful in some cases. for example with trailing commas it is easier to add or remove items from an array or object, as you don’t need to worry about adding or removing commas as well.



Join the conversation