Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating external Javascript Libraries

Tags:

javascript

How can I create external Javascript libraries which i can use in my web application project created in Visual studio?

like image 502
Manisha Awasthi Avatar asked Jan 23 '26 12:01

Manisha Awasthi


1 Answers

You can create library simply as a file, saved with the extension .js, that contains some JavaScript code.

Add a < script > tag, defined on the page(s) that uses the library, used to "connect" to the library

If library name is displaydate.js

You can include it in your code with this tag < script src="displaydate.js" >

Refer: http://www.javascriptkit.com/javatutors/external2.shtml

like image 195
Shraddha Avatar answered Jan 26 '26 01:01

Shraddha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!