Lesson 31 of 35 · +100 xp

Nullish Coalescing

Default for null/undefined.

Explained simply

Your task

Declare const name = input ?? "anon";

nullish.js
▶ Output (javascript)
Click 'Run code' to execute your code in a real sandbox.
← Back