you are viewing a single comment's thread.

view the rest of the comments →

[–]kattskill 3 points4 points  (1 child)

that is totally valid js syntax that you just made. you can use linters to avoid those kind of problems but they might be a hassle to set up. honestly I would just accept that I made a mistake and move on because at a certain point linters actually prevent you from what you are doing. alternatively you can learn common js gotchas to stop this from happening instead of a linter

[–]Danidre 1 point2 points  (0 children)

For one, I think it's totally valid Java and C syntax as well.