whirlwind-tour-to-javascript



whirlwind-tour-to-javascript

0 0


whirlwind-tour-to-javascript


On Github saintedlama / whirlwind-tour-to-javascript

JS Whirlwind Tour

What makes JavaScript different to object oriented curly bracket languages

What's common

  • Control Statements (if, else)
  • Curly Brackets
  • Semicolons
  • Loop Statements (for, while)
  • Operations (Almost)

What's different

  • Dynamic typing
  • Data types
  • No visibilities like 'public', 'private'...
  • First class functions
  • Auto insertion of ;

What's different

  • Expressions evaluating
  • Function scopes
  • Hoisting
  • Not Object Oriented: Prototypes
  • Confusing 'this' scope

Getting Better

  • Use JSHint
  • Read "JavaScript: The Good Parts"
  • Read the f*** manual MDN