Click on the numbers there, and it should take you to the code it has trouble with.
It’s not, can I use something other than jsfiddle for console?
I will test and find out from my own Firefox, so that I can be sure that you are given useful info.
What main browser do you use, Chrome?
function upTo(evt.target, ".playButton") {
Save and reload the page - does the Firefox browser console show a different error now?
SyntaxError: missing ) after formal parameters
function upTo(evt.target, ".playButton") {
After reloading the page, the Firefox browser console lets me go to the error.
I see there that you have two upTo functions. One of those is bad and must be removed.
It’s a lot easier in the Chrome debugger, but the Firefox one can be forced to somewhat behave too.
parent node, or the other one?
I removed parent node.
I’m seeing three upTo functions in there, where one of the parentNode ones is good, and the rest is bad.
I cannot say any further because you have failed to supply a link to the code that you are currently working on.
The middle one looks to be the best of the upTo functions.
Here:
I deleted the first.
SyntaxError: missing ) after formal parameters
_display:140:24
Why are you deliberately keeping more than one? You have been repeatedly told that there can be one.
function upTo(evt.target, ".playButton") {
Yes, that’s the bad one.
SyntaxError: expected expression, got ‘)’
[Learn More]