Truthy and Falsy values — In, JavaScript, every type and value has a Boolean value. This value can be either true or false. Which one has the value true is called truthy and another one is called falsy. Some Falsy values are — false, 0 (zero), ‘ ’ or “ ” (empty string), null, undefined…