Intro -
-
Class aim, future classes
-
What is programming? Wiki example
-
What is javascript?
- different programming languages, levels of abstraction
- concepts that existed before the internet.
- input, output
- variables, evaluation, assignment, comparison, control flow, loops, data structures, functions/methods
-
How does this fit into warby parker? We use JS a lot, but these concepts are common across any OO language
-
Browser, console
- client/server
- css, HTML, finally JS
-
Text editor
part 1
- we can assign variables
- try declaring some variables. You can bring them back.
- we can log them
- we can assign variables to point at numbers
- We can run our programs in the console just by copying code.
part 2
- we can add those numbers
part 3
- we can subtract, too. Try other operations.
part 4
- in addition to numbers, we can point our variables at strings.
- think of a string as a set of characters that is intended to be human readable.
- data types - we use the data type we need for the problem we have to solve, more in part 2
- methods, we can 'call' different 'methods' to act on our data.
- methods can take 'arguments', different inputs
part 5
- method practice
- concatenation
part 6
- comparison vs. assignment
- true vs false
part 7
- programs often have to evalute input and output like a tree
- draw a tree. diagram these out.