Archived post: posted sometime between 2016 and 2022.

Legitimate uses of undefined in JavaScript

As function argument placeholders? Yes.

To mark a variable for garbage collection? Yes.

For instantiation? No.

let x = undefined; // don't do this