@basarat
function logPerson(person){ console.log('Person with Name:' + person.name.toUpperCase()); }
function logPerson(person){ console.log('Person with Name:' + person.name.toUpperCase()); } logPerson({name: 'foo'}); logPerson({bar: 'bar'});
http://trends.builtwith.com/javascript/jQuery
Convinience
Soundness
https://developers.google.com/closure/compiler/docs/js-for-compiler#types
http://usejsdoc.org/tags-type.html
http://flowtype.org/
http://www.typescriptlang.org/
Primitives
Magic Literals
Objects
Call Signatures
Type Unions
Arrays
Construct Signatures
By basarat