Can we use both pure JavaScript and jQuery in the same .js document? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we use both pure JavaScript and jQuery in the same .js document?

If we use both pure JavaScript and jQuery in the same file document it will be considered an error or it's just fine?

14th Jun 2019, 6:25 PM
Ioana Constantin
2 Answers
+ 4
Yes, you can use both. Calling it 'vanilla' JavaScript in this context is probably better.
14th Jun 2019, 7:53 PM
AgentSmith
+ 3
No, it won't be, but if you use jQuery, it won't be pure javascript
14th Jun 2019, 6:31 PM
Airree
Airree - avatar