const vs let vs var
const keyword creates block scope variable and prevents its value to be reassigned by a new value. However, important thing is that it does not restrict changing the internal state of the object.
let is block-scope variable while var is function-scope variable.
'===' vs '==' comparison
=== is strict comparison, it checks value and type of value as well, so 1 === "1" returns false, the opposite of that is == comaparison which checks only value so 1 == "1" returns true.
Can we compare two objects with '===' ?
Follow me on Twitter