• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
JavaScript: The Good Parts
 

JavaScript: The Good Parts

on

  • 261 views

 

Statistics

Views

Total Views
261
Views on SlideShare
261
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    JavaScript: The Good Parts JavaScript: The Good Parts Presentation Transcript

    • JavaScriptThe Good Parts
    • The Awfulno linker = global vars are requiredand global vars are very, very badthere is block syntax, but not block scopesemi-colon insertionmost reserved words are not used
    • The Awful16-bit stringstypeofparseInt+binary floating point
    • The AwfulNaNPhony ArraysFalsy ValueshasOwnPropertyObject
    • The Bad== and !=withevalFunctionsetTimeout and setInterval (string arg version)
    • The Badcontinueswitch fall throughsblockless statements++ and --bitwise operators
    • The Badfunction: declaration vs. expressiontyped wrappersnewvoid/* block comments */
    • The Goodfunctionsloose typingdynamic objectsliteralsnumber
    • The Goodfunction objectnessfunction invocation patterns method, function, constructor, applyfunction argumentsfunction return
    • The Goodscopeclosurecallbacksmodulecascade
    • The Goodcurrymemoization (cache)inheritance pseudoclassical object specifiers prototypal functional parts