Double negation converts a non-boolean to an inverted boolean value. This helps in checking the truthiness of a value, by representing it as a boolean value. If the value is a string type, and it is an empty string, false will be returned. If it has some value then true will be returned. If the value is a number type, and it is 0, false will be returned. If it has some number as a value then true will be returned.