Uncaught SyntaxError: Unexpected token


Hi, who can help me? what I wrote wrong ?

var main = function() {
left: "0px"
left: "285px"
left: "-285px"
left: "0px"


Hi Semakinjohn,

Take a look at these:

(↑ working)

(↑ not working)

(↑ not working)

Can you spot the difference causing trouble between the second two and the first one?


The second two are missing their opening curly brace ({) aright after their parenthesis, and the second one shouldn't have a semi-colon there.


Oh got it, Thanks a lot :wink:


Thank you so much. I was stuck for a while.


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.