Let and Const

let variable = "can change";
const constant = "cannot change";

Template Literals

const message = `Hello ${name}`;

Destructuring

const [a, b] = [1, 2];
const { name, age } = person;

Spread Operator

const newArr = [...oldArr, 4, 5];
const newObj = { ...oldObj, key: "value" };

Common mistakes / Pitfalls

  • People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
  • It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
  • Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026