0

Hello. I don't know how to return false statement? It always return true.

https://code.sololearn.com/cmULKSQWS4ZZ/?ref=app

9th Aug 2021, 8:36 PM
TeaserCode
4 Answers
+ 1
if (sum != sum) returns false
9th Aug 2021, 9:00 PM
Jan
Jan - avatar
+ 1
TeaserCode If sum is not equal to sum, then it returns zero as the first output, and that is the same as false.
10th Aug 2021, 7:56 AM
Jan
Jan - avatar
0
if(sum != num )
9th Aug 2021, 8:59 PM
JaScript
JaScript - avatar
0
I still don't know how does it work. It always returns 1.
10th Aug 2021, 7:22 AM
TeaserCode