+ 8

Please Tell me what is wrong in my if statement condition

I made a if condition in which function performs when x==canvas.width/2 but it doesnt perform.Please Tell me what is wrong in my if statement condition (when I put condition x==canvas.width only then it performs correctly) https://code.sololearn.com/WBzR7Jaj5xPh/?ref=app

28th May 2018, 9:53 AM
Ishwar Ramdasi
Ishwar Ramdasi - avatar
4 Respuestas
+ 7
then what to use
28th May 2018, 11:55 AM
Ishwar Ramdasi
Ishwar Ramdasi - avatar
+ 6
var
29th May 2018, 4:35 PM
Ishwar Ramdasi
Ishwar Ramdasi - avatar
+ 3
why are you using /2
28th May 2018, 10:59 AM
AYUSH GUPTA
AYUSH GUPTA - avatar
+ 1
check for precedence.. and you will get your answer
29th Sep 2018, 3:23 AM
Ssa.Sak
Ssa.Sak - avatar