Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add answers to README.md #186

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add answers to README.md #186

wants to merge 3 commits into from

Conversation

Tinaaj
Copy link

@Tinaaj Tinaaj commented Dec 10, 2020

Continuing to work on this.

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?


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

@@ -74,13 +78,15 @@ What will the following return?

```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.

## Problem Eight

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?

## Problem Nine

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

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