Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Typechecking in Javascript

Peter Lazar
September 25, 2016

Typechecking in Javascript

A small presentation on type-checked javascript is, what problems it can solve for you.

Peter Lazar

September 25, 2016
Tweet

More Decks by Peter Lazar

Other Decks in Programming

Transcript

  1. 9/25/2016 Typechecking in Javascript http://localhost:3000/#/?export&_k=dacai8 2/10 Pop Quiz c o

    n s t a d d = f u n c t i o n ( o p e r a n d 1 , o p e r a n d 2 ) { r e t u r n o p e r a n d 1 + o p e r a n d 2 } a d d ( { } , { } ) a d d ( { } , [ ] ) a d d ( " " , { } ) a d d ( " " , [ ] ) a d d ( 1 + " " ) a d d ( 1 + [ ] ) a d d ( 1 + { } ) a d d ( 1 , 1 )
  2. 9/25/2016 Typechecking in Javascript http://localhost:3000/#/?export&_k=dacai8 3/10 TYPES STRONG/WEAK TYPING STATIC/DYNAMIC

    TYPING A type is a classi cation identifying one of various types of data, such as real, integer or boolean, that determines the possible values for that type, the operations that can be done on values of that type, the meaning of the data, and the way values of that type can be stored.
  3. 9/25/2016 Typechecking in Javascript http://localhost:3000/#/?export&_k=dacai8 10/10 PS: You should check

    out elm PPS: These slides were made using Spectacle, React based presentation library