null

noun

say it: “NUL” /nʌl/

A JavaScript value meaning "deliberately nothing", set on purpose.

What is null in JavaScript?

null — A primitive value deliberately used to represent no object or value.

const selectedOrder = null;

In a sentence

  • “getElementById returned null because no element had that id.”

Level: Novice · More JavaScript terms at this level

Updated

In other subjects