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="https://unpkg.com/obniz/obniz.js"></script>

You can take in the following.
This is on https://unpkg.com/obniz/obniz.js 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.

https://cdn.jsdelivr.net/npm/moment@2.26.0/moment.min.js

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

<script src="https://cdn.jsdelivr.net/npm/moment@2.26.0/moment.min.js"></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="https://cdn.jsdelivr.net/npm/moment@2.26.0/moment.min.js"></script>
<script>
  console.log(moment().format("YYYY-MM-DD HH:mm:ss"))
</script>