1. Truthy And Falsy Values When you write if/else a statement in any programming language, you expect to pass a value in the if() a condition that is strictly boolean which means either true or false. If the number is 0, Then the condition is false. Otherwise, the condition is true. If the string is…