Article

What is a library vs A script

https://cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js
Copy to clipboard

A library is a collection of related functions that can be used by a developer to easily build complicated functionality.

Libraries allow JavaScript developers to quickly accomplish otherwise complex tasks by taking advantage of already written code.

A script is simply lines of code that may call library functions to accomplish a task. A good example of a library is the fin-sweet CMSlibrary for Webflow.

This library provides a set of tools to easily manipulate Webflow CMS Lists. Using this library we can filter, sort and combine cms lists by just writing a few lines of code.

<script>
$(document).ready(function(){
  XT1
});
</script>
Copy to clipboard
Send to Live Demo

Live demo

<script>    
$(document).ready(function() {
  XT1
});
</script>
<script>
  
</script>
Copy to clipboard
Press the Run Demo button to execute the scripts above.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Your browser is too small

Resize your browser to be at least 769px wide.