Software Engineer @ Red Hat
github.com/rohitkrai03
@rohitkrai293
undefined
string
number
boolean
object
function
null
Native Types?
Native Objects?
Native Functions
== checks value
=== checks value and type
== allows coercion === doesn't allow coercion
Handy function self-reference
More debuggable stack traces
More self-documenting code
let introduced in ES6
Remember lexical scope vs. dynamic scope?
Creates an empty object
A constructor makes an object “based on” its own prototype
Classical Inheritance
Prototypal Inheritance
Deeply Inspired from Talks by Kyle Simpson
Further Reading - https://github.com/getify/You-Dont-Know-JS
Slides - https://slides.com/rohitrai/js-deep-dive
@getify