create a new javascript class code example
Example 1: create element javascript with class
// create div element by javascript with class
var div = document.createElement('div');
div.className = "div1";
Example 2: how to create object in javascript with class
let myCar1 = new Car("Ford", 2014);
let myCar2 = new Car("Audi", 2019);