What is the difference between JavaScript and jQuery?

Mihai B.

Well-known member
Registered
Joined
Apr 19, 2016
Messages
238
Points
18
Can you guys tell me what is the difference between JavaScript and jQuery? Since I have used jQuery scripts that shared on the internet but I don't see any differences from Javascript. It is as extended library of Javascript. Anyone explain me?
 

kevinhng86

Member
Registered
Joined
Jan 12, 2017
Messages
58
Points
0
Best answer
Javascript is a programming language for web-development. JQuery is a library written in Javascript that utilise all native features of Javascript in a complex way to produce a library of features which can be reuse. So to speak in short a framework that can be reuse for many circumstances which described in the JQuery documentation. You could probably also able to code whatever JQuery can do for you using just Javascript. However it can take you thousand lines of code or more depend on which features.
 

RDO Servers

Well-known member
Registered
Joined
Apr 3, 2015
Messages
1,027
Points
83
Kevin explained this perfectly.

jQuery is an extension of JavaScript. That is why your JavaScript code will work/run automatically, just you have to reference the jQuery library in order for jQuery code to work.
 

Mihai B.

Well-known member
Registered
Joined
Apr 19, 2016
Messages
238
Points
18
Mihai B.
jQuery is an extension of JavaScript
Thanks for letting me know this. I got it.
If I want to do active tabs with jQuery and Javascript, which one will give me better result and performance? I read articles online and they are telling me to create active tabs with both jQuery and Javascript but I really don't know which one to use.
 

rad-jason

Member
Registered
Joined
Jun 23, 2017
Messages
28
Points
0
These other guys nailed it. jQuery is a library that you use in conjunction with JavaScript. It allows you to do certain things that would be more difficult using just JavaScript. jQuery uses very similar syntax and lessens the workload for the programmer.
 

Maria_C

Member
Registered
Joined
Jun 26, 2017
Messages
48
Points
0
Well, you have your answer above. Javascript is the programming language and jquery its library.
 
Older Threads
Replies
6
Views
4,203
Replies
8
Views
3,541
Replies
25
Views
16,614
Replies
14
Views
5,805
Newer Threads
Replies
8
Views
7,415
Replies
25
Views
10,567
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top