The Deck Week 1 Flashcards

1
Q

What are booleans?

A

Booleans are a data type that represent true and false values

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

What data types have infinite possibilities? Which data type does not?

A

Strings and numbers have infinite possibilities. Booleans can only be true or false.

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

A ________ will compare ____ values and return a _______ value indicating whether that expression evaluates to ______ or ______.

A
comparison operator
two
boolean
true
false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Comparison Operator: Not equal to

A

!===

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

Comparison Operator: Equal to

A

===

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

if ( ________ ) {
check ________
___ ___ if _______ is met
}

A

condition
condition
run code
condition

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

What does the return statement indicate?

A

The return statement indicates that a function is done running and to pass over any code in the following lines within the function. A value should be given.

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

Javascript is…?

A

a programming language that powers web pages on the internet

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

What is the most common environment for running Javascript code?

A

Web Browsers

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

When code is ephemeral, what does that mean?

A

Ephemeral code has no way to stick around or be saved. Such as the code within the Google Developer Javascript Console

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

To make a computer do more work, ________________________.

A

make more instructions

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

To make a computer do less work, _______________________.

A

make less instructions

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

What are the 5 building blocks of programs?

A
values
functions
keywords
labels
comments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Values are individual pieces of ______.

A

data

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

What are the different kinds of values used in a program called?

A

types

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

What are operators?

A

Operators are special symbols that perform operations on one or two values.

17
Q

What are expressions? How can they be created? What can they be compared to?

A

Expressions are fragments of code that produce values. They can be created with values and operators. They are like single line instructions.

18
Q

1 + 2 (What is 1, what is it’s type?)

A

a value

number

19
Q

1 + 2 (What is + and what does it do?)

A

an operator, it performs operations upon the values 1 and 2

20
Q

1 + 2 (What do you call this whole thing?)

A

an expression

21
Q

What kind of operators perform worn on 2 values? What kind of perator performs work on 1 value?

A

Binary Operator

Unary Operator

22
Q

‘hello’ + ‘world’ : what are we doing here?

A

concatenation

23
Q

a function is a group of _______ that perform some sort of ______

A

instructions

work

24
Q

What is a a label?

A

a human friendly way to refer to information stored in a computer’s memory

25
Q

A function label aka its name should describe what?

A

It should describe what the function does.

26
Q

When writing functions, it’s really helpful to…?

A

come up with a plan for how your function will work first, then translate it into code

27
Q

What do logical operators do?

A

Logical Operators compare 2 values and provide a boolean result indicating whether the expression is true or false

28
Q

What is the bang operator known to be?

A

The logical not, the ! operator, aka bang

29
Q

What does the or operator look like?

A

||

30
Q

What does the and operator look like?

A

&&

31
Q

what kind of expressions is this?

name === ‘jo’ || name === “bo”

A

compund expression

32
Q

How to open google chrome developer console via keyboard shortcuts?

A

Command + option + j

33
Q

What is tabular data?

A

descriptive information, usually alphanumeric, that is stored in rows and columns in a database and can be linked to spatial data

34
Q

What data structure is commonly used with tabular data?

A

a two dimensional array (rows and columns)