+ 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
4 Réponses
+ 7
then what to use
+ 6
var
+ 3
why are you using /2
+ 1
check for precedence.. and you will get your answer