Is there a better way to check for multiple variables in an if statement JavaScript?
num2 = 23;
num1 = 3;
if(typeof num1 === 'number' && typeof num2 === 'number'){
}
Is there a better way to check for multiple variables in an if statement JavaScript?
num2 = 23;
num1 = 3;
if(typeof num1 === 'number' && typeof num2 === 'number'){
}