Getting Started With Programming
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
An excellent post, Jonathan. Next week let's have four or five of these instead of one. What about boolean values and expressions? Conditional branching?
ReplyDeleteOn another note, please put the KJ Cole sample svg image inside a web page that has validation links at the bottom.