Skip to content

Commit d89f407

Browse files
committed
Did chrome tasks
1 parent aef0c07 commit d89f407

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ Just like the Node REPL, you can input JavaScript code into the Console tab and
88
Let's try an example.
99

1010
In the Chrome console,
11-
invoke the function `alert` with an input string of `"Hello world!"`;
11+
invoke the function `alert` with an input string of `"Hello world!"`; it displays hello world in a alert box
1212

13-
What effect does calling the `alert` function have?
13+
What effect does calling the `alert` function have? the alert function forces browser to display a message or a warning.
1414

1515
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-
What effect does calling the `prompt` function have?
18-
What is the return value of `prompt`?
16+
Prompt("what is your name?"), it pops-up a dialog box where I enter my name.
17+
I saved my name in a variable myName and I called the prompt function, it gives my name.
18+
What effect does calling the `prompt` function have? by prompt you can write/give your input or user can cancel it
19+
What is the return value of `prompt`? name user have input or null in case of cancel.

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ In this activity, we'll explore some additional concepts that you'll encounter i
44

55
Open the Chrome devtools Console, type in `console.log` and then hit enter
66

7-
What output do you get?
7+
What output do you get? -> it says there a function log inside console.
88

9-
Now enter just `console` in the Console, what output do you get back?
9+
Now enter just `console` in the Console, what output do you get back? it says there a function log inside console.
1010

11-
Try also entering `typeof console`
11+
Try also entering `typeof console` ->object, console is a built-in object.
1212

1313
Answer the following questions:
1414

1515
What does `console` store?
16+
It doesn't store anything, It is a debugging object that enables you to interact with browser's developers tools.
1617
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
18+
console.log -> it prints normal messages
19+
console.assert -> it is conditional debugger, it checks the condition. If its true it gives nothing and if its false it displays message in console.
20+
The dot . it means to access inside the object.

0 commit comments

Comments
 (0)