Skip to content

Commit 85fdb3d

Browse files
committed
Added Stretch
1 parent 5ed6319 commit 85fdb3d

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ 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+
## Got "chrome://new-tab-page says" popup
15+
## Hello world!
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?
19+
## Got "chrome://new-tab-page says" popup
20+
## Got "What is your name?"
21+
## Got a box for input
1822
What is the return value of `prompt`?
23+
## promt: ƒ prompt() { [native code] }
24+
## myName: Ayo

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ 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] }
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+
## Objects
17+
## console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
1618
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
19+
## console.log - Prints the text to the Console as a log message
20+
## console.assert() writes an error message to the console if the assertion is false
21+
## The dot(.) allows the access of the log method inside the console object

0 commit comments

Comments
 (0)