function testNum(a) {
switch (a) {
case a > 0:
alert("positif num");
break;
case a < 0:
alert("num is negative");
break;
default:
alert("num is unknown");
}
}
testNum(4);
So im trying to do this simple if statement with Swtich methods and smh simply not working the way i want,why its not giving me 'num is positive' , ???