+ 3
... Is Not a Function TypeError (JS)
This has happened multiple times with different codes and I have no idea why it is happening. My function 'like()' is getting called when I click the like button. Although it being clearly defined (in the right scope) it continues to say: "Uncaught TypeError, like is not a function" https://code.sololearn.com/WtZsc029OMO1/?ref=app
1 Odpowiedź
+ 2
That happened as a result of name clashing, what I mean is that, you defined a variable and function with the same name.
That's what confused javascript.
But this runs without error https://code.sololearn.com/W9GJfJG5zd70/?ref=app