beginner27 minby DevFox

Optional and readonly properties

Change a property of an object, mark one a value may leave out with a question mark, and lock one with readonly; see why const keeps the box but not the object inside, and why Node never sees readonly. TaskKit’s tasks get a fixed id and a due date they may leave out.

  • TypeScript
  • Fundamentals
Optional and `readonly` properties. Read this lesson at .