Answer: In boolean context, a conditional variable value that returns true is called truthy value. All values are truthy values unless it declared as falsy values. Falsy values are 0, empty string, undefined, null, NaN, false.
2. Difference Between Undefined and Null?
Answer: Undefined means not defined. It is a type. It means declaring a variable but no value assigned. When I access a property of an object but this property is not declared then I get undefined. On other hand, Null means not exist. It is an object. …
As a developer, you should know this fact about React.
i. Number Methods