Mapa mental
JS VALUE, TYPE, OPERATORS
Conteúdo do mapa
JS VALUE, TYPE, OPERATORS
Value: number, string, Boolean, object, function, undefined
Special Nulber
- Infinity & -Infinity = vo cuc
- NaN
- = not a number
- Return when 0/0
String
- "String" or 'String'
- escaping the character
- backslash (\) 4 special meaning
- "This is \nmy first \"eng\" class"
- Concatenate <-- "con" + "cat" + "enate"
Unary Operators
- typeof
- return string value naming the type of the value you give it
- console.log(typeof 4.5); --> number
- typeof
Boolean Values
- Comparision
- < is less than
- > is greater than
- <= less than or equal
- >= greater than or equal
- == equal
- != not equal to
- === equal value and type
- !== not equal value, same type
- Logical
- || or
- && and
- ! not
- (condition) ? true : flase
- Comparision
Undefined
- Auto type conversion
- Trong JS, tu xd type varible
- EX: "sfd" +1 -> String, "5"-1 -> number, "five"*2->NaN
- Auto type conversion
Informações
- Descrição
- Beginner JavaScript Mapa Mental sobre JS VALUE, TYPE, OPERATORS, criado por Nguyet Huynh em 19-11-2016.
- Criado por
- Nguyet Huynh
- Visualizações
- 0
- Avaliação