4_basic_math
dz / mdn / js / 0_javascript_first_steps / 4_basic_mathSummary
Basic math in javascripts, numbers and operators
Node Tree
Nodes
| types_of_numbers | |
| content | Types of Numbers |
| children | integers, doubles, floats |
| number_systems | |
| content | Number Systems |
| children | octal, binary, hexadecimal |
| integers | |
| content | integers |
| parents | types_of_numbers |
| floats | |
| content | floats |
| children | doubles |
| parents | types_of_numbers |
| doubles | |
| content | doubles |
| parents | floats, types_of_numbers |
| octal | |
| content | octal |
| parents | number_systems |
| hexadecimal | |
| content | hexadecimal |
| parents | number_systems |
| binary | |
| content | Binary |
| parents | number_systems |
| number_data_type | |
| content | One data type for numbers: Number |
| typeof | |
| content | Typeof: checks data type |
| useful_number_methods | |
| content | Useful Number Methods |
| children | string_to_number, toFixed |
| toFixed | |
| content | toFixed(): round number to fixed number of decimal places |
| parents | useful_number_methods |
| string_to_number | |
| content | Passing string to Number() converts to number data type |
| parents | useful_number_methods |
| arithmetic_operators | |
| content | Arithmetic Operators |
| children | operands, operator_precedence, operators |
| operands | |
| content | Operands: numbers involved in arithmetic |
| parents | arithmetic_operators |
| operator_precedence | |
| content | Operator Precedence |
| parents | arithmetic_operators |
| operators | |
| content | Operators |
| children | assignment, comparison, increment_decrement |
| parents | arithmetic_operators |
| increment_decrement | |
| content | Increment/Decrement Operations |
| parents | operators |
| assignment | |
| content | Assignment Operators |
| parents | operators |
| comparison | |
| content | Comparison Operators |
| children | triple_equals_vs_double |
| parents | operators |
| triple_equals_vs_double | |
| content | === tests equality of values AND their datatypes, while == only checks if their values are the same. |
| parents | comparison |