Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptprimitives and typeofSingle-choice MCQ

What is the output of this snippet?

function f(x="default"){return x}\nconsole.log(f(null));