LexarG56

Generation

generate functionSun, 18 Jun 2023

Hacer que un case tipo default regrese a la tarea anterior

Script function defaultSwitch(e) { switch (e) { case "a": console.log("a"); break; case "b": console.log("b"); break; default: return defaultSwitch(prompt("pick a or b")); } }

Questions about programming?Chat with your personal AI assistant