Answers for "js toggle boolean"


js toggle boolean

bool = !bool;
Posted by: Guest on January-16-2021

javascript toggle variable

var thing = true; //try changing this to false
thing = !thing; //the variable will go from true to false, or from false to true
Posted by: Guest on April-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language