Getting Started With Programming
deffinitons and required data
- data types
- numbers, strings, booleans
- numbers
- 1, 2, 3, etc.
- strings
- anything in quotes
like this
- booleans
- true or false
- comparison operators
- >, <, >=, <=, ===, !=, they compare two data types to return a boolean
- conditional statements
- following code is only executed if true
- modulo operator
- returns the remainder of a division operation
- length
- returns the number of characters in a string
- substring()
- returns part of the preceding string
- variables
- variables store data and must be preceded by var
- var
- denotes a variable
other syntax stuff
- console.log=print or echo
- comments start with //
- true and false are lower case