You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/4-stretch-explore/chrome.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,11 @@ In the Chrome console,
11
11
invoke the function `alert` with an input string of `"Hello world!"`;
12
12
13
13
What effect does calling the `alert` function have?
14
+
Pop up a alert mesage
14
15
15
16
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`.
16
17
18
+
17
19
What effect does calling the `prompt` function have?
18
20
What is the return value of `prompt`?
21
+
I typed my name the outbput in the conselo comes undefined
Copy file name to clipboardExpand all lines: Sprint-1/4-stretch-explore/objects.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,17 @@ Answer the following questions:
14
14
15
15
What does `console` store?
16
16
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