I have a variable that stores false or true, but I need 0 or 1 instead, respectively. How can I do this? 18 Answers 18 Tags: booleanintegerjavascriptnumberstype-conversion