Importing External Libraries

Various JavaScript can be imported from HTML.
Even obniz.js is loaded and running.
To import JavaScript from HTML, use the <script> tag.
In the case of obniz.js

<script src=""></script>

You can take in the following.
This is on It means to take the JavaScript and run it and make it available.

In addition to obniz.js, there are many other libraries available from around the world for various browsers.

Illustration: moment.js

moment.js is a library that simplifies date manipulation. Let’s take a look at this library. moment.js is available at the following URL It seems.

To get this in, you can include the following Script tag

<script src=""></script>

By including this, moment.js can be used from HTML.
This makes it easy to display the date in a simple format.

<script src=""></script>
  console.log(moment().format("YYYY-MM-DD HH:mm:ss"))