Skip to content

Commit fa849fa

Browse files
committed
4-strech-explore are done.
1 parent d2baabe commit fa849fa

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Sprint-1/4-stretch-explore/chrome.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ invoke the function `alert` with an input string of `"Hello world!"`;
1212

1313
What effect does calling the `alert` function have?
1414

15+
// A pop up window on the webpage.
1516
Now try invoking the function `prompt` with a string input of `"What is your name?"` - store the return value of your call to `prompt` in an variable called `myName`.
1617

1718
What effect does calling the `prompt` function have?
1819
What is the return value of `prompt`?
20+
//prompt() asks for input, returns the user's answer

Sprint-1/4-stretch-explore/objects.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ Try also entering `typeof console`
1313
Answer the following questions:
1414

1515
What does `console` store?
16+
Console stores an object.
1617
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
18+
The dot is used to access something inside an object. console.log means access the log function that is stored inside the console object.

0 commit comments

Comments
 (0)