Skip to content

Commit 2d62bae

Browse files
committed
mandatory-interpret and stretch-explore completed.
1 parent f7c2988 commit 2d62bae

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ invoke the function `alert` with an input string of `"Hello world!"`;
1212

1313
What effect does calling the `alert` function have?
1414

15+
- It opens an alert saying "Hello World!"
16+
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+
21+
- It opens a prompt asking for an input
22+
1823
What is the return value of `prompt`?
24+
25+
- myName

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,24 @@ Open the Chrome devtools Console, type in `console.log` and then hit enter
66

77
What output do you get?
88

9+
- I am getting a function log() { [native code] }
10+
911
Now enter just `console` in the Console, what output do you get back?
1012

13+
- console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}
14+
1115
Try also entering `typeof console`
1216

17+
- Object
18+
1319
Answer the following questions:
1420

1521
What does `console` store?
22+
23+
- It stores different data such as debug ,error ,info , log, warn, etc.
24+
1625
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
26+
27+
- 'console.log' :Accesses the log function on the console object so you can print output.
28+
- 'console.assert' : Accesses the assert function on the console objects so you can report an error when the condition is false.
29+
- '.': Dot notation is used to access a property or method on an object (e.g console.log gets log from console).

0 commit comments

Comments
 (0)