Answer javascript | SoloLearn: Learn to code for FREE!

0

Answer javascript

What alert will display on the screen? function test(a, b) { if(a > b) { return a*b; } else { return b / a; } } alert(test(5, 15)); What alert will display on the screen?

10/25/2017 12:11:32 PM

Adam Książek

10 Answers

New Answer

+4

the answer is three 3

+3

+1

Here is the explanation : // Global function declaration function test(a, b) { if(a > b) { // if a is greater than b return a*b; // number alerted 5*15 = 75 } else { // if a is smaller than b or equal to b return b / a; // number alerted 15/5 = 3 } } alert(test(5, 15)); // called the function "test" by value

0

What alert will display on the screen? function test(a, b) { if(a > b) { return a*b; } else { return b / a; } } alert(test(5, 15)); / number alerted 15/5 = 3 } } alert(test(5, 15)); // called the function "test" by value so the answers will be "3"

0

0

if a else

0

15/5 answer is 3

0

The Answer Is 3

-1

these answers dont help

-1