Skip to content

Commit 72666bd

Browse files
committed
Part4. Explore - Stretch: Were explored concepts about V8 Console and answered the questions.
1 parent d7d36b1 commit 72666bd

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ 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+
Calling the alert() function causes a pop-up dialog box which appear in the browser
15+
displaying the message "Hello world!" and an OK button.
1416

1517
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`.
1618

1719
What effect does calling the `prompt` function have?
20+
Invoking the 'prompt' function causes an input pup-up dialog in the web browser displaying the message 'What is your name?' and waiting for information from the user.
21+
1822
What is the return value of `prompt`?
23+
The return value that was provided by the user.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ 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+
f Log() {[native code]}
89

910
Now enter just `console` in the Console, what output do you get back?
11+
console {debug: f, error: f, info: f, log, f, warn: f,...}
12+
a full detailed list of methods or functions which can be expanded in the console to see al its properties.
1013

1114
Try also entering `typeof console`
15+
'object'
1216

1317
Answer the following questions:
1418

1519
What does `console` store?
20+
the console stores a collection of functions that provide different functionalities.
21+
1622
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
23+
The dot connect the main function console to sub-functions which are part of the shorthand. The '.' operator allow access to the properties that belong to console.

0 commit comments

Comments
 (0)