- Why do we need libraries?
- so that we don’t waste our time writing code that another programmer has already written
Most libraries have documentation with a list of functions or real-world examples allowing programmers to re-use existing code to save time on writing code.
Libraries are useful to avoid writing code that many others have used in the past. Documentation can help programmers identify functions that will help perform common tasks without reinventing the wheel.
Why do we need libraries?
Libraries improve functionality and enable a developers to save time by using code already developed for various applications.
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. This is achieved by using libraries.
We need JS libraries to help us obtain pre-coded Functions that are stored in these libraries. Many unselfish programmers decided to post and make their code available to all.
1- to re used a code a save many work hours. Time and effort efficiency.
We need libraries because its a reusable bundle of javascript functionality. It makes it easier for others to access our docs, file, images, slideshows etc. Instead of copying and pasting the original written javascript code. When you use javascript libraries, it basically streamlines the process of coding itself and sharing it elsewhere.
Why do we need libraries?
We need libraries so we don’t have to write code that has already been written by other developers. Libraries can save us time.
Libraries are necessary to make re-using code easier.
As an example, if you are developing say an interactive website that uses complex animations chances are that someone has solved that problem already and there is a code in a library somewhere that you can re-use instead of re-inventing the wheel so to speak.
To reduce time and energy waste, coding something that is already exist.
The use of libraries is necessary so that we don’t have to create code from scratch. This saves time, avoiding double work on issues that someone has already worked on and found good solutions. Consequently, it allows the developer to engage in other activities.
Q.1. Why do we need libraries?
A.1.Allows programmers:
a. to re-use existing code so they don’t waste time writing code that has already beeb written.
b. has functions that accomplish useful tasks for a webpage.