01 The basics
The words that turn up in the first fortnight and then never stop.
- argument
- A value you pass into a function when you call it. The name in the definition is the parameter.
greet("Ada") - boolean
- A value that is either true or false. Named after George Boole.
- comment
- A note for humans that the language ignores.
# like this - concatenate
- Join two strings end to end.
"ab" + "cd" - condition
- An expression that is true or false, used to decide what runs next.
- expression
- Anything that produces a value.
2 + 2is an expression;x = 4is a statement. - function
- A named block of code you can run on demand.
- index
- A position in a list or string. Counting starts at zero.
- iterate
- Go through a collection one item at a time. What a loop does.