typed script code example

Example 1: typed.js

<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>

Example 2: what is typescript

Basically, TypeScript is like an extension or "superset" of JavaScript.
Since JavaScript is a loosely typed language,
TypeScript enforces the strict use of types. 
Thus, making it a strictly typed language.

Example 3: typedjs

// Can also be included with a regular script tag
import Typed from 'typed.js';

var options = {
  strings: ['<i>First</i> sentence.', '& a second sentence.'],
  typeSpeed: 40
};

var typed = new Typed('.element', options);