Skip to content

Commit aa27b71

Browse files
committed
Broader explanation of what prompt() stores.
1 parent 7437e47 commit aa27b71

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎Sprint-2/4-stretch-explore/chrome.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@ Now try invoking the function `prompt` with a string input of `"What is your nam
1616
What effect does calling the `prompt` function have?
1717
What is the return value of `prompt`?
1818

19-
// Opens a popup box with a text input. The value inside the () is what would display above the input.
20-
// The return value is myname?
19+
// Opens a popup box with a text input. The value inside the () is what would display above the input.
20+
// The return value is myname in this case.
21+
// In general, prompt will store a string containing whatever the user typed or null if they clicked cancel.
2122

2223
This is the code I did.
2324
alert("Hello world")
2425
undefined
2526
prompt("What is your name")
2627
'Tylerluvslasagne'
27-
let myname = prompt("what is yur name")
28+
let myname = prompt("what is your name")
2829
undefined
2930
console.log(myname)
3031
VM319:1 I LOVE MY EX
31-
undefined
32+
undefined

0 commit comments

Comments
 (0)