Skip to content

Commit 9f1d381

Browse files
committed
stretch
1 parent 8a5ee4b commit 9f1d381

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ 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+
Pop up a alert mesage
1415

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

18+
1719
What effect does calling the `prompt` function have?
1820
What is the return value of `prompt`?
21+
I typed my name the outbput in the conselo comes undefined

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,17 @@ 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+
19+
My ansers come form AI as i dintn't undestand the excercise but now I know :
20+
21+
What does console store?
22+
console stores an object. This object contains various properties, many of which are functions (also known as methods when they belong to an object). These functions provide utilities for debugging and logging information to the developer console.
23+
24+
What does the syntax console.log or console.assert mean?
25+
In particular, what does the . mean?
26+
The syntax console.log or console.assert means you are accessing a property (in this case, a function) of the console object.
27+
28+
The . (dot) is called the property accessor or member access operator. It is used to access properties or methods that belong to an object. In simple terms, it means "look inside this object for something named..."
29+
30+
So, console.log means "access the log function that is a part of the console object."

0 commit comments

Comments
 (0)