Lesson 31 of 35 · +100 xp
Nullish Coalescing
Default for null/undefined.
Explained simply
Your task
Declare const name = input ?? "anon";
Click 'Run code' to execute your code in a real sandbox.
Lesson 31 of 35 · +100 xp
Default for null/undefined.
Declare const name = input ?? "anon";
Click 'Run code' to execute your code in a real sandbox.