Upon examination of the embedded script below, I noticed that it is only providing a single result (500). How can I modify my code to generate both results? Your advice on this matter is greatly appreciated.
function multiplier() {
var number = 25;
var multiplier20 = 20;
if (number && multiplier20); {
return number * multiplier20;
}
var multiplier1 = 1;
if (number && multiplier1); {
return number * multiplier1;
}
}
multiplier();
UPDATE: Thank you everyone for your assistance. However, after further analysis, I discovered the issue was related to returning an object rather than just numbers. How should I adjust the code to ensure it returns only two numbers???