Sign in
Log inSign up

Trailing commas?

Kashish Grover's photo
Kashish Grover
·Oct 26, 2017

Yay

56%

Eww

44%

81 votes · Closed

var object = { 
  foo: "bar", 
  baz: "qwerty",
  age: 42, <<--
};

var arr = [
  1, 
  2, 
  3, <<--
];
Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct