JavaScript, often abbreviated JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. Over 97% of websites use JavaScript on the client side for web page behavior, often incorporating third-party libraries.
What can JavaScript be used for? Or, what can't JavaScript be used for?


cite:JavaScript on WikiPedia«
[Understanding the Core Technologies]
[Why We Use Them Together]
While you can write Ajax natively using raw JavaScript (via the XMLHTTPRequest API), jQuery simplifies the process considerably. Together, they allow you to build fluid, highly responsive single-page applications.
For example, using jQuery's simplified Ajax method, you can retrieve user data from a server and display it on your screen in just a few lines of code:
[JavaScript - AJAX Example]
CFFCS | CarrzSynEdit: | JS (JavaScript)
$.ajax({
    url: 'https://example.com',
    type: 'GET',
    dataType: 'json',
    success: function(response) {
        // Manipulate the DOM with jQuery
        $('#user-info').html('Welcome, ' + response.name);
    },
    error: function(xhr, status, error) {
        console.error('Error fetching data:', error);
    }
});