+ 1
Javascript test is wrong
Look up the public code "Module 4 Quiz proof wrong" that I did just to show that it is good to question. I write this to help and not to confuse The correct answer is 75
10 Answers
+ 4
But the code I can see in module is not this.
Check JavaScript course, functions module,
Using parameters and tell me
+ 6
:) This is the way we learn programming.
Do mistakes, to make you better.
+ 3
Where?
+ 3
I think the one written in module is perfect
+ 3
please check every single token of the program.
You wrote x<y in your program, while test in module has x>y
+ 2
The last question on the module 4 Quiz. I posted code public named. Module 4 quiz proof wrong
In javascript section
Under web code
+ 1
Nope thank you I was wrong
0
//test it for your self under javascript functions
//section
function test(a, b)
{
if(a<b)
{
return a*b;
}
else
{
return b/a;
}
}
alert(test(5,15));
0
This is why it's good to double check. My knowledge of the algol syntax has bested me today
0
I have deleted the posted code as not to confuse. Thank you