Null instead of Guest? in Working with Strings in JavaScript - What Is the prompt() Method, and How Does It Work?

Tell us what’s happening:

There’s a text in this lesson:
“The output paragraph will then display a greeting message using the provided name or Guest if the user canceled.”

Shouldn’t it be:
“The output paragraph will then display a greeting message using the provided name or null if the user canceled.”?

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0

Challenge Information:

Working with Strings in JavaScript - What Is the prompt() Method, and How Does It Work?

You are right, that’s what it does. There are other scenarios as well . If the user presses OK and removes the default text then no text shows in the message.

Will you be able to report it as an issue on Github?
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

MDN docs you can use as a source when opening the issue: Window: prompt() method - Web APIs | MDN

‘null’ text should be used instead of ‘Guest’ in Working with Strings in JavaScript - What Is the prompt() Method, and How Does It Work? · Issue #65769 · freeCodeCamp/freeCodeCamp