jQuery Reading Assignment

  1. jQuery is a free Javascript library.
  2. It helps us when developing Apps f.ex. We can implement code from the library instead of writing the code ourselves.
  3. The first one is uncompressed and written in a “readable” manner, probably with some basic layouting for our eyes. This makes the code a bit heavier and its executions slower. The 2nd version is compact, small but can gives everybody over 30 eye-cancer.
2 Likes
  1. jQuery is the most popular JavaScript library, and has many use cases. It makes building JavaScript web pages a lot easier.
  2. For developers, jQuery helps with building web pages faster and easier. jQuery helps with:
  • Adding animated effects to elements
  • Making XML (Ajax) requests
  • Manipulating the DOM
  • Creating image slideshows
  • Making drop-down menus
  • Creating drag-and-drop interfaces
  • Adding power to forms
  • Making code compatible for all browsers
  1. We have two versions of jQuery - minified and uncompressed. The uncompressed version is the version as it was developed, that means with spaces, indentations and comments. It is easy to read. The other version, minified, is compressed and they have removed all unnecessary code, like spaces, indentations and comments. This means that the file is smaller, and is loaded faster by the browser (so this is the best to choose).
2 Likes
  1. What is jQuery?

is a library aka a collection of working function ready to use

  1. How does it help us as developers?
    when writing code we can just use the ready function from jquery rather than rewrite the code. Jquery allow us to have much more dynamic and better looking website using its functions

  2. Why do we have 2 version of jQuery - minified and uncompressed?
    one is heavier made for human to read the code the other it’s lighter (just for the pc to use) to use in the code

2 Likes

1.What is jQuery?
it is, the most popular java script library in use today.
2.How does it help us as developers?
we can write a single line of code to achive what would have taken 10-20 lines of regular javascript code.
3.Why do we have 2 version of jQuery - minified and uncompressed?
because the uncompressed js file is about 160kb in size, but , in the minified js file, they squized the whole library into a mere 23kb, as it is much quicker for visitor to download.

2 Likes

1: the most popular library in Javascript.

2: it makes your typical JS code shorter and saves time to developers. Add a lot of premade functions to javascript, for example slideshows, making drop-down menus etc.

3: * The uncompressed .js file is easy to read and modify, but it’s around 160kb in size (at the time of writing).

  • The minified .js file has all comments, whitespace, and other unnecessary characters removed from the file, squeezing the whole library into a mere 23kb. Although you can’t easily read the code, this is the version you’ll want to place on your site, as it’s much quicker for visitors to download.
2 Likes
  1. Jquery is a JavaScript library .
  2. It helps us as developers because it gives us access to coding that makes coding faster and easier and allows us to enhance our pages significantly.
  3. We have 2 versions of jquery basically for different use cases . One give you all the comments and descriptions making it easy to read but the file is very large . So the minified version has all the extras removed shrinking the file size down significantly. Therefore making it the one you want to have on your site as it’s much faster to download .
1 Like

1: jquery is a library based on js that makes developing js webpages and js webapps.
2:jquery lets you call many functions etc to solve complex problems others already have before.
3:One is easier to work with as it is more readable and easier to edit,but is a lot smaller which allows the page to load faster.the uncompressed version is a lot easier to work in and to read, but is a lot larger

1 Like

So proud :smiley: was surprised when my code worked by using things I remembered from previous lessons :smiley: something I googled

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

</head>
<body>

<input type="text" id="txt_name" />
<button id="sendbutton"> Submit </button>

<script>

$("#sendbutton").click(function(){
  alert("Hey there " + txt_name.value);
});

</script>


</body>
</html>

2 Likes

1. jQuery is a free JavaScript library.

2. jQuery helps us as developers because it makes it easier and more efficient to build JavaScript webpages and webapps using fewer lines of code.

3. We have two versions of jQuery minified and uncompressed because the uncompressed version allows us to read and easily modify it and the minified version is much more suited towards being used directly on the webpages or webapps as it has all the unnecessary characters removed from the file, which makes it much smaller and efficient.

1 Like

@claudiorox well done as usual :clap: :grinning:

1 Like
  1. A free Javascript library

  2. With jQuery you can write powerful Javascript apps using fewer lines of code.

  3. The uncompressed file is easy to read and modify.
    The minified file is harder to read, but easier for visitors to download.

1 Like
  1. What is jQuery?
    jQuery is a Javascript Library most popularly used today

  2. How does it help us as developers?
    It makes it easier and quicker to build JavaScript webpages and web apps.

  3. Why do we have 2 version of jQuery - minified and uncompressed?
    The minified version has all comments, whitespace and other unncessary characters removed from the file. The uncompressed version is easy to read and modify.

1 Like
  1. What is jQuery?
  • It is a library of .js files. Instead of writing a code, we can take a file which contains a code that does what we want, and link that file from our webpage.
  1. How does it help us as developers?
  • It saves time and effort.
  • It keeps our code short, as we only need one line for each file instead of many lines of code.
  1. Why do we have 2 version of jQuery - minified and uncompressed?
  • Uncompressed is easy to read and modify, but takes 160 kb.
  • Minified contains only the necessary characters - no comments, no whitespace etc. It takes 23 kb. As I understand, we take the uncompressed one, do the editing we want, and then create a minified version of it.
1 Like
  1. jQuery is a useful javascript library.
  2. It helps developers by providing all kinds of effects to be incorporated into a programmer’s code.
  3. We have minified and uncompressed jQuery because of the size difference in the files. The minified version is easier to share with others because of the smaller size, and the uncompressed version - although it is large - is easier to read and to modify.
1 Like

**What is jQuery?
it is a free library of javascript

**How does it help us as developers?
it make the work easier in a simple way.

**Why do we have 2 version of jQuery - minified and uncompressed?
Because uncompressed jQUERY is easy to read but it is very big.
the second is small but difficult to read.

1 Like
  1. What is jQuery?
    A library of functions/javascript code that can be referenced and plugged in to your own code for quicker development and less convoluted code.

  2. How does it help us as developers?
    It allows for cleaner, quicker, and more efficient code development.

  3. Why do we have 2 version of jQuery - minified and uncompressed?
    One is a smaller file as it removes comments and whitespace, but is suitable for placing on the website as it will be less of a footprint. The larger uncompressed file has everything included, such as comments, for easier navigation and readability.

1 Like
  1. It is a library for javascript that has really useful and popular functions
  2. It makes our job easier and faster
  3. Other one is just code, and other one has comments and its easier to read.
1 Like

1. jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps.

2. it can help us developers fx if you want to add an effect or what ever you want to do with your project its a lot easier and faster with jQuery then normal java script code.

3. the uncompressed is a bit more basic and it contans 160kb size
well the minified is more advanced and is harder to read and has not that much space 23kb

1 Like
  • What is jQuery?

jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps.

  • How does it help us as developers?

With jQuery you can write a single line of code to achieve what would have taken 10-20 lines of regular JavaScript code.

  • Why do we have 2 version of jQuery - minified and uncompressed?

The minified version is smaller because it is stripped from all comments, whitespace, and other unnecessary characters. (makes the webpage perform better)

The uncompressed version is just better to read and modify

1 Like
  1. jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps.

  2. With jQuery you can write a single line of code to achieve what would have taken 10-20 lines of regular JavaScript code.

  3. The minified has removed all of the comments and indention allowing for the fastest loading speed when visiting the website.
    The uncompressed file is for developers that want to see the functions in a readable manner.

1 Like