25 Javascript Interview Question

Post Views: 147 1. What’s the difference between undefined and null?. ↑ Before understanding the differences between undefined and null we must understand the similarities between them. They belong to JavaScript’s 7 primitive types. They are falsy values. Values that evaluated to false when converting it to boolean using Boolean(value) or !!value. Ok, let’s talk about the differences. undefined is the default value of a variable that has not been assigned a specific value. Or a […]

 205 total views