Skip to content

add answers to README.md#186

Open
Tinaaj wants to merge 3 commits into
joinpursuit:masterfrom
Tinaaj:master
Open

add answers to README.md#186
Tinaaj wants to merge 3 commits into
joinpursuit:masterfrom
Tinaaj:master

Conversation

@Tinaaj

@Tinaaj Tinaaj commented Dec 10, 2020

Copy link
Copy Markdown

Continuing to work on this.

Comment thread README.md

// Number 1.25
400 > 200
// true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the type of this expression?

Comment thread README.md
// true

1 !== 1
?? False

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • what is the type of this expression?

Comment thread README.md
Comment on lines +64 to +72
// true

true && false

// false
20 % 6
// 2

"a" + "b"

// "ab"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the types of these expressions?

@Tinaaj

Tinaaj commented Dec 11, 2020 via email

Copy link
Copy Markdown
Author

@Tinaaj

Tinaaj commented Dec 11, 2020 via email

Copy link
Copy Markdown
Author

@Tinaaj

Tinaaj commented Dec 11, 2020 via email

Copy link
Copy Markdown
Author

Comment thread README.md

```js
typeof 4
// undefined // 4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this return "undefined" or does it return 4?

Comment thread README.md

2 === 1 || 3 === 4

// 'false'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this return false (boolean type) or "false" (in quotes, string type)? There is a difference between the two.

Comment thread README.md

Write a step-by-step evaluation for the following expression: `'ca' + 'ter' + 'pi' + 'llar'`.

// caterpillar

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you break this down into smaller steps?

Comment thread README.md

Write a step-by-step evaluation for the following expression: `2 * 4 === 8 && 'car' + 'pool' === 'carpool'`.

// true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the steps?

Comment thread README.md
## Problem Ten

Write a step-by-step evaluation for the following expression: `'1' + '2' + '3' - '1'`.
// 122 No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the steps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants