Skip to content

Instantly share code, notes, and snippets.

@andrewfritz86
Last active December 14, 2016 20:52
Show Gist options
  • Save andrewfritz86/24cdc40f2e1328c3f8fba4bcfaf31be3 to your computer and use it in GitHub Desktop.
Save andrewfritz86/24cdc40f2e1328c3f8fba4bcfaf31be3 to your computer and use it in GitHub Desktop.
notes

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment