Skip to content

Instantly share code, notes, and snippets.

@mjhea0
Forked from bertoort/intro_to_js.md
Created July 11, 2016 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjhea0/cdd033fbab57003c3fa87a199134fc30 to your computer and use it in GitHub Desktop.
Save mjhea0/cdd033fbab57003c3fa87a199134fc30 to your computer and use it in GitHub Desktop.
Part 1
<style type="text/css"> section, p, h1, h2, h3 { text-align: left; } </style>

Intro to JS


Write, mentally evaluate, and store the result of JS expressions


Success Criteria

  • Why JavaScript?
  • Running JavaScript
  • Types
  • Operators
  • Console.log

Why learn JavaScript?


  • Only full stack web application language (Isomorphic)
  • Only dynamic language natively supported by the browsers
  • It is required
  • Sustained adoption
  • Low barrier to entry

What is JavaScript?


History


  • When was JavaScript created?
  • What is ECMAScript?
  • What is TC39?
  • How many versions of JS has there been?

  • Developed in 10 days in 1995 by Brendan Eich while working for Netscape.
  • ECMAScript Language Specification
  • Technical Committee 39 published the final draft of the 5th edition

Types in JavaScript


A must: wat


Types in JavaScript

  • string
  • number
  • boolean
  • null
  • undefined
  • object

Variables

  • var

Operators


Assignment

  • =
  • +=

Comparison

  • ==
  • ===
  • >
  • >=
  • !

Arithmetic

  • +
  • -

Logical

  • ||
  • &&

Bitwise


Ternary

condition ? val1 : val2


typeof


Relational

  • in
  • instanceof

Operator Precedence


Console.log


Review

  • Why JavaScript?
  • Running JavaScript
  • Types
  • Operators
  • Console.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment