How to check which version of jQuery is loaded

You can easily check which version of jQuery is loaded on a page (or whether it is loaded at all) by running either of these commands in your browser console.





All four of these commands will return the same result. If jQuery is loaded successfully, you will recieve the version number, e.g 3.5.1.

If jQuery is not loaded you will recieve a message along the lines of ReferenceError: jQuery is not defined.

Do you still use jQuery in your projects? Is the library still relevant considering the advances in vanilla JavaScript?

That's me!

I’m Ajay Karwal. I write about my experiences as a front-end developer. If you enjoy my content, please consider supporting what I do.

Become a PatronBuy me a coffee