Skip to content

Commit 9ebcb3e

Browse files
committed
Work on 4-stretch-explore
1 parent bb7ccaa commit 9ebcb3e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ In the Chrome console,
1111
invoke the function `alert` with an input string of `"Hello world!"`;
1212

1313
What effect does calling the `alert` function have?
14+
this shows a dialogue window with "Hello world!"
1415

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+
21+
this shows a dialogue window with an input field so you can input data
22+
the return value of prompt is whatever user put into the dialogue

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ In this activity, we'll explore some additional concepts that you'll encounter i
55
Open the Chrome devtools Console, type in `console.log` and then hit enter
66

77
What output do you get?
8+
I get function log()
89

910
Now enter just `console` in the Console, what output do you get back?
11+
I get Console { assert: assert(), clear: clear(), count: count(), countReset: countReset...
1012

1113
Try also entering `typeof console`
1214

1315
Answer the following questions:
1416

1517
What does `console` store?
18+
console is a class that store a lot of functions related to console output and input
1619
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
20+
this means to access the function log from the class console

0 commit comments

Comments
 (0)