Javascript test is wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

6th Jul 2017, 5:25 AM
Brad Blackout
Brad Blackout - avatar
10 Answers
+ 4
But the code I can see in module is not this. Check JavaScript course, functions module, Using parameters and tell me
6th Jul 2017, 5:50 AM
Sachin Artani
Sachin Artani - avatar
+ 6
:) This is the way we learn programming. Do mistakes, to make you better.
6th Jul 2017, 5:52 AM
Sachin Artani
Sachin Artani - avatar
+ 3
Where?
6th Jul 2017, 5:37 AM
Sachin Artani
Sachin Artani - avatar
+ 3
I think the one written in module is perfect
6th Jul 2017, 5:46 AM
Sachin Artani
Sachin Artani - avatar
+ 3
please check every single token of the program. You wrote x<y in your program, while test in module has x>y
6th Jul 2017, 5:47 AM
Sachin Artani
Sachin Artani - avatar
+ 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
6th Jul 2017, 5:43 AM
Brad Blackout
Brad Blackout - avatar
+ 1
Nope thank you I was wrong
6th Jul 2017, 5:50 AM
Brad Blackout
Brad Blackout - avatar
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));
6th Jul 2017, 5:48 AM
Brad Blackout
Brad Blackout - avatar
0
This is why it's good to double check. My knowledge of the algol syntax has bested me today
6th Jul 2017, 5:51 AM
Brad Blackout
Brad Blackout - avatar
0
I have deleted the posted code as not to confuse. Thank you
6th Jul 2017, 5:55 AM
Brad Blackout
Brad Blackout - avatar