Jump to content

javascript libraries


hisoka

Recommended Posts

"It is a collection of code written to make certain tasks easier".

 

So predefined functions , like apply() or eval() or charCodeAt() , are libraries as they are little piece of code written and used to make certain task easier??? like calculating or encapsulation of data . This is useful for human beings . Is not it ?

Link to comment
Share on other sites

according to what you wrote , a library is a code written to make certain tasks easier . This code is typically a third-party code that is imported and used . A normal written script in a website can be imported and used too by million of people to make certain tasks easier . A program which is a code can be downloaded from a third party and used to make certain task easier. So I do not see any difference between a code , a library and a program . So what is a library?

Edited by hisoka
Link to comment
Share on other sites

Some libraries might be considered programs, but libraries don't "do" things by themselves. If you put jQuery on a page nothing will happen other than a lot of things getting defined. The page itself will not change, not until you actually use the library in your own code.I don't use the term "a code", or "codes", I use code as plural, e.g. "a file full of code". If I'm referring to a program I call it a program, not "a code". I might refer to "a piece of code" as part of a larger program.

A normal written script in a website can be imported and used too by million of people to make certain tasks easier

Not the way a library can. You don't need to change libraries. If you take a script off of someone else's site you'll need to change it to work on your site. When you import and use jQuery you don't change jQuery, you just use it.
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...