+ 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 ответов
+ 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