Skip to content

Instantly share code, notes, and snippets.

@natevenn
Created May 7, 2016 02:01
Show Gist options
  • Select an option

  • Save natevenn/46dc27d9c213fd4a88b294f652e7dea2 to your computer and use it in GitHub Desktop.

Select an option

Save natevenn/46dc27d9c213fd4a88b294f652e7dea2 to your computer and use it in GitHub Desktop.
jQuery is a library built on top of JS
variables are the way we store values and they can be text, numbers, data, and code
functions are how we wrap our code or pieces of functionality
- function expressions are variables that point to a function
- function declarations are named functions
everything in JS is an obj expect - null, strings, booleans, numbers, and undefined
we can access properites with dot notation or with brackets
'this' is a special JS keyword that refers to the object that is in context to the function being called
everything is truthy execpt null, zero, undefined, NaN, and empty string
the or operator returns the first value that is truthy or last value
the and operator returns the first value that is false or last value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment