Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Last active November 18, 2018 12:55
Show Gist options
  • Save harrisonmalone/c1bb49ec8dfd610b2deb9dec6aa3711a to your computer and use it in GitHub Desktop.
Save harrisonmalone/c1bb49ec8dfd610b2deb9dec6aa3711a to your computer and use it in GitHub Desktop.

Weekly summary first week js

  • installing node, basics of javascript
  • this document outlines the basics of javascript, variables, types, control flow
  • the basics of javascript are extremely similar to ruby
  • callbacks
  • remember a callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action
arr.forEach(/* this is the start of callback*/function(element) {
    console.log(element)
}/*this is the end of the callback*/)
  • all of my callbacks notes
  • then moved on to browser javascript
  • using method calls like querySelector, addEventListener, createElement, classList.add, classList.toggle
  • linking js file to html
  • experimenting with console
  • browser javascript notes from the day
  • great resource for looking at all the event listeners that exist
  • todolist challenge, main new things introduced were appendChild and getting value from a forms input input.value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment