Quiz 1 Flashcards
It is used to declare a variable that can be reassigned later
Var
It is similar to var,but it has block scope meaning the variable is only accessible within the block where it was declared.
Let
Is used to declare variable that should not be reassigned after their initial assignment.
Const
Reserved keywords in javaScript
Var
Let
Const
If
Else
For
While
Function
Is a powerful tool for displaying output in javaScript.
Console.log
It is used to add two numbers together or to concatenate strings.
Addition (+) Operators
It is used to subtract one number from another
Subtract (-) Operator
Is used to multiple two number together
Multiplication (*) Operator
Is used to divide on number by another.
Division (/) Operator
Is used to find the remainder of the division between two number
Modulus (%) operator
If you want to ensure that a number is always display whit two decimal places, you can use the ______ method
ToFixed
Give atlist six JavaScript arithmetic Operators
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Modulus (%)
Exponentiation (**)
Increment And decrement Operators
Increment (++)
Decrement (- -)
Represents textual data and is enclosed and is single or double quotes.
String
Represent numeric values including integers and floating-point numbers.
Number
Represents either true or false.
Boolean
Represents the intentional absence of any object but not assigned a value.
Null
Represent a variable that has been declared but not assigned a value.
Undefined
Use descriptive names that reflect the purpose of variable
Descriptive Name
For naming variables where the first word is lowercase and each subsequent word start with an uppercase letter
Camel Case