Dev Helpers
← Back

Format a conjunction list

Format a conjunction list using Node.js.

Open this example in the interactive library

Source code

const date = new Date("2026-01-02T13:30:00Z");
console.log(
  new Intl.ListFormat("en", { style: "long", type: "conjunction" }).format([
    "SQL",
    "CSS",
    "JS",
  ]),
);

Sample output

SQL, CSS, and JS