Switch case with logic

Run Settings
LanguageJavaScript
Language Version
Run Command
function test(n){ switch(true){ case(n<5): console.log("oke") break; case(n>5): console.log("sip") break; default: console.log("def") } } test(2);
Editor Settings
Theme
Key bindings
Full width
Lines