Skip to content

Instantly share code, notes, and snippets.

@saylerb
Last active August 13, 2016 16:55
Show Gist options
  • Select an option

  • Save saylerb/10be233924706bddc8a4457208ee2e72 to your computer and use it in GitHub Desktop.

Select an option

Save saylerb/10be233924706bddc8a4457208ee2e72 to your computer and use it in GitHub Desktop.
  1. What was interesting?
  • Interesting is that you can create javscript objects on the fly, without creating classes. Now that we've worked with JSON, I think I understand that generating JSON is creating an object without defining the classes.
  • Interesting the Scheme influenced Javascript. I've heard that Scheme is a good first functional langauge to learn, so I'm excited to use some function concepts in my Javascript programming going forward.
  1. Which sections did you totally skim?

I didn't skim anything...this reading was pretty short.

  1. Do you think the reading was valuable?

I liked the high-level overview of the language. I think it's valuable to be aware of a language's features before you start learning it in-depth.

  1. Which topics were notably confusing?

Still a little confused on the practical applications of closures. Also, Arrays in js can have holes? Wat?

@saylerb

saylerb commented Aug 13, 2016

Copy link
Copy Markdown
Author

The key to understanding design patterns such as immediately-invoked function expressions is to realize JavaScript has function scope (but not block scope) and passes values by reference inside a closure. https://en.m.wikipedia.org/wiki/Immediately-invoked_function_expression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment