Skip to content

Instantly share code, notes, and snippets.

@bertoort
Last active July 11, 2016 13:36
Show Gist options
  • Save bertoort/8aaff098fdfc220ae5fd546954b40b6b to your computer and use it in GitHub Desktop.
Save bertoort/8aaff098fdfc220ae5fd546954b40b6b 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