Eloquent JS terms Flashcards

1
Q

values

A

to organize bits better, they are separated into chunks known as values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

numbers

A

are values of a number type:

200 +4 * 11

numbers are integers, and operators are plus & addition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

%

A

modulo, mod for short

remainder

ex: 300%100 -> 3 with a remainder of 14

144%12 -> 12, with a remainder of 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

NaN

A

not a number

you ge this when you try to do math like 0/0, or other operations that don’t yield meaninful results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

string

A
  • basic data types that represent text
  • enclosed in quotes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

concatinate

A

“con” + “cat” + “e” + “nate”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

template literals

A

back tick quoted strings can span lines & embed other values

ex: ‘half of 100 is ${100/2}

is

“half of 100 is 50”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Unary operators

A
  • some operators are written in words instead of symbols
  • ex: typeof operator -> produces a string value naming the type of the value you give it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Boolean Values

A

Distinguishes between only 2 possibilities like yes/no, true/false

ex: console.log (3 > 2)

// true

conosle.log (3 < 2)

// false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Binary operators

A

ex: + -

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Operator Types

A

> = greater than or equal to

< = less than or equal to

= = equal to

! = not equal to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Logical operators

A

&& and

|| or

! not

? : conditional operator that is ternary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Used to denote the absence of meaningful value and are mostly interchangeable

A

NULL

UNDEFINED

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This catches and holds values, imagine them as tentacles rather than boxes

A

Variable/Binding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Some keywords that denote bindings/variable

A

var

const

let

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a piece of program wrapped in a value?

A

Function

17
Q

Executing a function is called ______, _____, or _____

A

invoke

call

apply

18
Q

Conditional execution is created with this keyword

A

if

19
Q
A
20
Q

A control flow that runs a code multiple times

A

Loop

21
Q

A statement starting with the keyword while creates a ____.

A

Loop

22
Q
A