Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is the difference between JavaScript and JQuery?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 373
    Comment on it

    Hii all, it seems that many want to know what is actually a difference between JavaScript and JQuery. So, here are following differences between these two :-

    JavaScript :-

    1. JavaScript is a scripting language.

    2. In JavaScript, you need to write your own scripting which may take time.

    3. There are some issues with cross-browser compatibility.

    4. Developers need to handle by writing their their own JavaScript code.

    Here is an example :

    function myFunction(a, b) {
        return a * b;
    }
    document.getElementById("demo").innerHTML = myFunction(4, 3);
    

     

    JQuery :-

    1.  JQuery is simply a JavaScript library.

    2. In JQuery, you need not to write much scripting which already exists in JQuery.

    3. It is optimized to work with with a variety of browser automatically.

    4. It is a multi-browser JavaScript library designed to simplify the client-side scripting of HTML.

    Here is an example :

    $(document).ready(function(){
        $("p").click(function(){
            $(this).hide();
        });
    }); 

     

    Note :- You need to add JavaScript Library for to run JQuery functions.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: