+ 1

Uncaughr Reference error!

I have recently started learning Javascript. I came across this code which gets the coordinate of the mouse click. https://code.sololearn.com/WuHGcbiPohvr/?ref=app I am getting the above mentioned error, how can i resolve this?

13th Mar 2022, 4:38 AM
Akash
Akash - avatar
5 Answers
+ 1
The code is using jQuery, You need to add cdn script to the html between the head tags https://releases.jquery.com/
13th Mar 2022, 4:56 AM
ODLNT
ODLNT - avatar
+ 1
ODLNT thanks it worked, i think there is some issue with code playground. When i included CDN in my system it is working properply.
13th Mar 2022, 5:24 AM
Akash
Akash - avatar
+ 1
Glad to hear it, good luck with your project.
13th Mar 2022, 5:29 AM
ODLNT
ODLNT - avatar
+ 1
ODLNT thanks
13th Mar 2022, 7:20 PM
Akash
Akash - avatar
0
ODLNT I followed your advice, but it's still showing the same error
13th Mar 2022, 5:20 AM
Akash
Akash - avatar