Learning a New Language Flashcards

1
Q

runtime environment

A

is a set of technologies that determine how to execute the code

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

Declaring (in JavaScript)

A

stating a variable’s name with details about it’s scoping and mutability

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

Assigning (in JavaScript)

A

creating a reference between a variable and an object

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

let variable (in JavaScript)

A

A variable that is block-scoped and re-assignable.

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

const variable (in JavaScript)

A

A constant variable. THis variable is block-scoped and read-only. Constants are the type of variable we’ll use most often.

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

Declaration and Assignment (in JavaScript

A

In JavaScript, there are two distinct steps when dealing with variables:
declaration
assignment
Declaration is the step of stating a variable’s name, and what kind of variable it is. Different kinds of variables have different scope and re-assignment properties. We only need to declare a variable once. We never need to re-declare it.

Assignment is the step of giving a value to the variable, using the assignment operator =. Re-assignment also uses the assignment operator.

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

let

A

let is one of three kinds of declared variables. let is A block-scoped variable.

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

const

A

const is one of three kinds of declared variables. const is a block-scoped variable that is read-only. Ressignment raises a TypeError.

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

var

A

DONT USE var. var is one of three kinds of declared variables. var is a variable without block scobing. If defined within a function, it will have scope throughout the entire function. If defined outside a function it will have global scope. DONT USE. BAD

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