Quiz 1 Flashcards

1
Q

It is used to declare a variable that can be reassigned later

A

Var

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

It is similar to var,but it has block scope meaning the variable is only accessible within the block where it was declared.

A

Let

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

Is used to declare variable that should not be reassigned after their initial assignment.

A

Const

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

Reserved keywords in javaScript

A

Var
Let
Const
If
Else
For
While
Function

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

Is a powerful tool for displaying output in javaScript.

A

Console.log

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

It is used to add two numbers together or to concatenate strings.

A

Addition (+) Operators

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

It is used to subtract one number from another

A

Subtract (-) Operator

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

Is used to multiple two number together

A

Multiplication (*) Operator

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

Is used to divide on number by another.

A

Division (/) Operator

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

Is used to find the remainder of the division between two number

A

Modulus (%) operator

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

If you want to ensure that a number is always display whit two decimal places, you can use the ______ method

A

ToFixed

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

Give atlist six JavaScript arithmetic Operators

A

Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Modulus (%)
Exponentiation (**)

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

Increment And decrement Operators

A

Increment (++)
Decrement (- -)

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

Represents textual data and is enclosed and is single or double quotes.

A

String

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

Represent numeric values including integers and floating-point numbers.

A

Number

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

Represents either true or false.

17
Q

Represents the intentional absence of any object but not assigned a value.

18
Q

Represent a variable that has been declared but not assigned a value.

19
Q

Use descriptive names that reflect the purpose of variable

A

Descriptive Name

20
Q

For naming variables where the first word is lowercase and each subsequent word start with an uppercase letter

A

Camel Case