Skip to content

Commit d031689

Browse files
committed
Update documentation with additional examples
1 parent faf70eb commit d031689

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@ Now try invoking the function `prompt` with a string input of `"What is your nam
1616

1717
What effect does calling the `prompt` function have?
1818
What is the return value of `prompt`?
19+
20+
//What effect does calling the `alert` function have?
21+
a pop up appered saying hello world
22+
23+
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`.
24+
25+
What effect does calling the `prompt` function have?
26+
it give a pop up with a text input
27+
What is the return value of `prompt`?
28+
the return is what is entered into the text input if it is blank you will get ''
29+

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ Answer the following questions:
1414

1515
What does `console` store?
1616
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
17+
18+
//log() { [native code] }Now enter just `console` in the Console, what output do you get back?console {debug: ƒ, error: ƒ, info: ƒ, log: ƒ, warn: ƒ, …}assert: ƒ assert()clear: ƒ clear()context: ƒ context()count: ƒ count()countReset: ƒ countReset()createTask: ƒ createTask()debug: ƒ debug()dir: ƒ dir()dirxml: ƒ dirxml()error: ƒ error()group: ƒ group()groupCollapsed: ƒ groupCollapsed()groupEnd: ƒ groupEnd()info: ƒ info()log: ƒ log()memory: MemoryInfo {totalJSHeapSize: 12700000, usedJSHeapSize: 10000000, jsHeapSizeLimit: 2330000000}profile: ƒ profile()profileEnd: ƒ profileEnd()table: ƒ table()time: ƒ time()timeEnd: ƒ timeEnd()timeLog: ƒ timeLog()timeStamp: ƒ timeStamp()trace: ƒ trace()warn: ƒ warn()length: 0name: "warn"arguments: (...)caller: (...)[[Prototype]]: ƒ ()[[Scopes]]: Scopes[0]Symbol(Symbol.toStringTag): "console"[[Prototype]]: Object[[Prototype]]: Object
19+
Try also entering `typeof console`'object'
20+
Answer the following questions:What does `console` store?the console stores objects
21+
What does the syntax `console.log` or `console.assert` mean?
22+
In particular, what does the `.` mean?
23+
the . denotes what kind of object the console is being told to use and what to do with the data it has been given

0 commit comments

Comments
 (0)