There are many different types of programming languages. For instance, websites use HTML, CSS, and JavaScript to function properly. If you have read our article on CSS and HTML, you now know that:
- HTML designates the elements (form, heading, button) of a website
- CSS combines styles like 'color, size, etc.' and dynamically shapes the design of your site.
Today, let's explore a new language: JavaScript.
JavaScript Code
JavaScript is a scripting language that can be used to add interactivity and customization to web pages and software applications. JavaScript is primarily used to add functionality to web pages, such as automated actions. It is a programming language that executes directly in the browser.
JavaScript has a syntax made up of a series of characters and symbols.
JavaScript Syntax Example
So, what’s the difference with jQuery? jQuery is a code library that helps you easily add animations to the web!
jQuery
jQuery is a fast, feature-rich JavaScript library. It greatly simplifies many different operations on HTML documents, such as traversing and manipulating the DOM, handling events, animations, and Ajax. With its easy-to-use API working across multiple browsers, jQuery has become one of the most popular ways to use JavaScript.
How to Use jQuery?
jQuery provides a way to detect events and execute custom code when one of these events occurs. There are two methods for integrating jQuery data into your site.
I will introduce you to the one I know best, the integration using the "src=" function.
This was a brief introduction to JavaScript and jQuery. If you want to learn more, there are several online courses available, including a comprehensive one included with the Finsweet Pro subscription!