From cf47ffaa0da1d8b69b8b2d658925d04b113024c2 Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Mon, 9 Feb 2026 18:54:03 +0530 Subject: [PATCH] fix(curriculum): change Guest to null in prompt lecture (#65770) --- .../673263f4a5899da8124542fd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-strings-in-javascript/673263f4a5899da8124542fd.md b/curriculum/challenges/english/blocks/lecture-working-with-strings-in-javascript/673263f4a5899da8124542fd.md index a79222d6775..879280ac81f 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-strings-in-javascript/673263f4a5899da8124542fd.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-strings-in-javascript/673263f4a5899da8124542fd.md @@ -44,7 +44,7 @@ btn.addEventListener("click", () => { In this example, when the user clicks on the button, the `prompt()` method displays a dialog box with the message `What is your name?` and an input field that initially contains the value `Guest`. -If the user types their name and presses "OK", the `userName` variable will store the entered value. If the user presses "Cancel," the `userName` variable will be set to `null`. `null` signifies that the user did not provide any input. The output paragraph will then display a greeting message using the provided name or `Guest` if the user canceled. +If the user types their name and presses "OK", the `userName` variable will store the entered value. If the user presses "Cancel," the `userName` variable will be set to `null`. `null` signifies that the user did not provide any input. The output paragraph will then display a greeting message using the provided name or `null` if the user canceled. You will learn techniques to avoid displaying `null` when a user cancels the prompt in future lessons. Keep in mind that the `prompt()` method will halt the execution of the script until the user interacts with the dialog box.