+ 2

Why is it SyntaxError when you give X or Y a negative value (on this code)?

At the bottom of the code there are -25 Values. I tried goving It 5, but SyntaxError... https://code.sololearn.com/Wx4v3D3tL683/?ref=app

28th Jul 2019, 4:18 AM
Ginfio
Ginfio - avatar
5 Réponses
+ 3
KrOW , oh, thats why (forgot operator), WOW, all this time ... I didnt think of that, Thanks.
28th Jul 2019, 4:59 AM
Ginfio
Ginfio - avatar
+ 2
Can you write the full edited line than raise that error?
28th Jul 2019, 4:50 AM
KrOW
KrOW - avatar
+ 2
Well, its normal... you forget to add operator between x (or y) and 5... You mean x + 5 + 'px'???
28th Jul 2019, 4:55 AM
KrOW
KrOW - avatar
+ 1
KrOW check it now.
28th Jul 2019, 4:53 AM
Ginfio
Ginfio - avatar
+ 1
👍
28th Jul 2019, 5:07 AM
KrOW
KrOW - avatar