const arr = [1, 2, 3, , ,];
arr.length; // 5Trailing commas / notebook
Trailing commas
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const object = {
foo: "bar",
baz: "qwerty",
age: 42,
};