Skip to content

Commit f80d2fe

Browse files
committed
completed 4-stretch-explore
1 parent 026209e commit f80d2fe

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ 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-
14+
// It sends a pop up alert that says Hello world!
1515
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`.
1616

1717
What effect does calling the `prompt` function have?
1818
What is the return value of `prompt`?
19+
//It prompts the user the to input what I ask them. The return value is the user's name which they enter into the text field.

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ 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-
8+
// log() { [native code] } i get a function called log.
99
Now enter just `console` in the Console, what output do you get back?
10-
10+
I get an object called console which holds a bunch of functions.
1111
Try also entering `typeof console`
12-
12+
'object'
1313
Answer the following questions:
1414

15-
What does `console` store?
15+
What does `console` store?
16+
It stores functions.
1617
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
18+
The '.' means let me access the property inside an object.

0 commit comments

Comments
 (0)