Please enable JavaScript.
Coggle requires JavaScript to display documents.
Variables, Comparison Operators, Data Types, If-statements, Logical…
Variables
Declaring Variables
let, const, var
var = old browser
let = can change
const = default, not change
const myName = "Reygin Susas"
const myAge = 34
Naming Conventions
camelCase = recommended
snake_case
kebab-case
PascalCase
Comparison Operators
<
greater than >
===
!==
<=
grater than >=
Data Types
Numbers
Strings
Booleans
1 < 2 = true
1 > 2 = false
If-statements
if(1<2){true}else{false}
Shortcur for if-statements
Ternary operator ?:
Guard operator &&
Default operator ||
Logical Operators