A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage. We need it to re-use existing code when we can, so that we don’t waste our time writing code that another programmer has already written.
Libraries are a bunch of functions that each and everyone can contribute and search into it, that saves a lots of time “and F word”.
The power of millions of brain to solve headache problems.
We need libraries to re-use code for time-saving purposes . As programmers we don’t need to write a code that somebody has already written.
1: We use Libraries to re-use code and copy functions that someone has already coded.
We dont really need them, but they make our lives as programmers much easier as we can use someone else
s work.
So we don’t have to “reinvent the wheel”. We can just use code that others have created, for the same purpose that we need.
1. Why do we need libraries?
We use libraries to save our time by reusing the code of a specific functionality that is already created by other programmers.
To reuse code which saves time.
One can learn from the code that is being reused.
Libraries are needed in order to not waste time in re-inventing functionalities that already exist.
- We as programmers need to use libraries (this means re-use existing code) when we can, in order not to waste time writing code that another programmer has already written.
- It saves us time.
- We need libraries so we are not rewriting the same code for a functionality that is used by many different people. We can use other peoples commands to write higher-level code for a specific task
- Why do we need libraries? We need to use libraries so that we focus on something that it is new rather than on something that someone has created in the past
-
Why do we need libraries?
So we don’t have to re-write code for functions or problems that already have been solved by other programmers and are shared in a library.
- Why do we need libraries?
Libraries are the sources of codes where developer can find useful codes which are available to reuse
as a matter of saving time instead of starting off from the scratch and focus on what exactly we need.
Reusable codes are collected in the library, which saves us time and work.
To save time and reuse code again.
It saves us the time and work required to re-type the same code again.
- In JavaScript, a library is used to save time by taking existing code already written (containing a bunch of functions) and using them to accomplish the same useful task for your webpage.
- Library saves us time as we can look up others programmer’s functions.