Ben Paddock
@_pads
let string = 'a string'; // valid string = true; // yup, valid string = 0; // still valid string = {}; // you guessed it...
const foo = function() { console.log('bar'); }; typeof foo "function"
typeof {} "object" typeof [] "object" typeof new Map() "object"
https://www.typescriptlang.org/
https://github.com/BrumJS/typescript-demo
Questions?
By Ben Paddock
The first in a series about JavaScript testing.
Software Developer