Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
/home/ccuser/workspace/learn-jquery-event-handlers-mouse-events-this/test/test.js:24
}).on(_, => {
^^
SyntaxError: Unexpected token =>
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensionsā¦js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at /home/ccuser/node_modules/mocha/lib/mocha.js:220:27
at Array.forEach (native)
at Mocha.loadFiles (/home/ccuser/node_modules/mocha/lib/mocha.js:217:14)
at Mocha.run (/home/ccuser/node_modules/mocha/lib/mocha.js:469:10)
at Object. (/home/ccuser/node_modules/mocha/bin/_mocha:404:18)
at Module._compile (module.js:571:32)
at Object.Module._extensionsā¦js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3
Donāt understand why Iām getting this error. Have entered in what itās asking. Not sure what else it wants.
Until such time as the spec explicitly says that semi-colons are no longer required we should continue to use them religiously, for syntactical completeness. The above code is missing those semi-colons due to author neglect. Donāt read anything into it.
Hello, the error is not coming from youā¦ I believe itās a bug. I also copied the āGet codeā results and reset the code, then I pasted the results and there was still an error. I already reported the bug, but if others are still experiencing this then keep reporting it.
I have encountered this issue today. My solution works fine in the browser, but unfortunately I am unable to complete the task. It seems that this behaviour is caused by some syntax errors in the structure verification code in test.js file. I also reported this as a bug.
UPDATE:
I got back to the course today and it seems that the issue has been fixed