Skip to content

add answers to README.md#186

Open
Tinaaj wants to merge 3 commits intojoinpursuit:masterfrom
Tinaaj:master
Open

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

Conversation

@Tinaaj
Copy link

@Tinaaj Tinaaj commented Dec 10, 2020

Continuing to work on this.


// Number 1.25
400 > 200
// true

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?

// true

1 !== 1
?? False

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 on lines +64 to +72
// true

true && false

// false
20 % 6
// 2

"a" + "b"

// "ab"

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
Copy link
Author

Tinaaj commented Dec 11, 2020 via email

@Tinaaj
Copy link
Author

Tinaaj commented Dec 11, 2020 via email

@Tinaaj
Copy link
Author

Tinaaj commented Dec 11, 2020 via email


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

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?


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

// 'false'

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.


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

// caterpillar

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?


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

// true

Choose a reason for hiding this comment

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

what are the steps?

## Problem Ten

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

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