Libraries - Reading Assignment

Why do we need libraries?

Libraries contain multiple functions that together perform a task on a webpage which allows programmers to use code created by other programmers. This saves them spending all of their time writing code that has already been written

2 Likes

We need libraries in JavaScript so that we don’t waste our time writing the code when it has already been done for us. We can also access these libraries to gain access to an array of functions that maybe useful to us.

1 Like

To build on top existing code and save time. It is how we stand taller on the shoulder of the giant. :slight_smile:

1 Like
  1. Libraries are needed so that programmers do not waste time writing code that someone else has already written. It helps increase efficiency and stability to reuse code that is already tested and implemented across many different web pages and platforms.
1 Like
  1. Why do we need libraries?
  • Code reuse. Just like LEGO blocks stacked on each other. Instead of building a body for your car, you can borrow a ready made body then place your own wheels to make it move the way you want it to.
1 Like
  1. Not to waste time with creating code someone else has already written.
1 Like

Q).Why do we need libraries?
A). As programmers, we should re-use existing code when we can, so that we don’t waste our time writing code that another programmer has already written.
In JavaScript, the way we do that is by using a library. A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage.

//NO POINT WASTING TIME IN REINVENTING THE WHEEL, WHEN YOU DON’T HAVE TO. :stuck_out_tongue_winking_eye:

1 Like

1.) We need libraries to have access to code that has already been written and is in use. By building on code that already exists, we can save time and they also afford us the ability to give reference to our coding in the case that it needs to be handed off to another programmer.

1 Like
  1. Why do we need libraries?
    Ans: We need libraries so that we can re-use the code that’s written in the libraries instead of having to rewrite the code which takes more time of ours.
1 Like
  1. We need libraries for reusing the code,it’s simpler and it saves time.
1 Like
  1. Why do we need libraries?
    Libraries can be utilised (called) in our Javascript code to perform specific functions. By combining libraries of code written and documented by other programmers we do not have to re-invent the wheel every time and can create powerful programs.
1 Like

1. Why do we need libraries?

To document reusable code for reusage

1 Like

Using an existing code that a developer has shared through a library saves time and effort.

1 Like
  1. We need libraries so that we can save time and energy by using code that has already been written by other people in our JavaScript projects. That saves other people from having to use precious time doing the same thing that has already been done by other people. If people have made JS libraries already, it means they want other people to use what they’ve written. This will overall increase what people are able to accomplish in JavaScript by freeing up time to be spent elsewhere.
1 Like
  1. Libraries allow us to save time on tasks we have to do by using code that’s been already been created and tested by other programmers before us, so that we can focus on more specific tasks in our development.
1 Like

We need libraries in JS to access code that others wrote and we do not need to ā€˜reinvent’ it and that way it is easier to find code that works in several browsers. No matter how hard we try our own code might not be. We build our code upon already built code.
It’s important the choice of the library we make at the beginning, because this is the code we will be working later with and to choose sources/servers we can trust to access the library.

1 Like

A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage.
we should re-use existing code when we can, so that we don’t waste our time writing code that another programmer has already written.

1.Why do we need libraries?
We should re-use existing code when we can, so that we don’t waste our time writing code that another programmer has already written.

1 Like

we should re-use existing code when we can, so that we don’t waste our time writing code that another programmer has already written, this can be done using libraries

1 Like
  1. We can build our code on top of other people’s code, this will save us a lot of time.
1 Like