JSFiddle - React, Tailwind, and code Playground

by Kirubel Girma

JavaScript

class AssemblyLine {
 constructor(name) {
 	this.name = name
 }
 
 #assembleDoors(leftPanel, rightPanel) {
 	return leftPanel + ` added with ` + rightPanel
 }
 
 doors(leftPanel, rightPanel) {
 	console.log(`Done in ${this.name}`, this.#assembleDoors(leftPanel, rightPanel))
 }
}

const AtlantaLine = new AssemblyLine("Atlanta")

AtlantaLine.doors("Toyota L", "Toyota R")

class ProductionLine extends AssemblyLine {
	constructor(){
  
  }
	
  doors("Right", "Left");
}