Skip to content

Commit 2727395

Browse files
committed
stretch-explore done
1 parent 4a7731e commit 2727395

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ 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+
//Shows an alert
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`.
16-
17-
What effect does calling the `prompt` function have?
18-
What is the return value of `prompt`?
16+
//shows a pop-up to enter a name / stores and shows name
17+
What effect does calling the `prompt` function have? //shows pop-up form
18+
What is the return value of `prompt`? //if myName is set returns myName value

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ In this activity, we'll explore some additional concepts that you'll encounter i
44

55
Open the Chrome devtools Console, type in `console.log` and then hit enter
66

7-
What output do you get?
7+
What output do you get?// ƒ log() { [native code] }
88

99
Now enter just `console` in the Console, what output do you get back?
10-
10+
// console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1111
Try also entering `typeof console`
12-
12+
// 'object'
1313
Answer the following questions:
1414

1515
What does `console` store?
16+
//stores an object that contains lots of built-in debugging functions
1617
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
18+
//means “get the log (or assert) property from the console object”

0 commit comments

Comments
 (0)