JSFiddle - React, Tailwind, and code Playground

by copystar

JavaScript

/* The goal of this program is to select a random call number from an academic library.

KEY / CLASS // MAX-NUMBER
1     AC          999
2     AE           90
3     AG          600


*/

function LCClass(LCName, maxValue) {
    this.LCName = LCName;
    this.maxValue = maxValue;
}

var AC= new LCClass("AC", 999);
var AE= new LCClass("AE", 90);
var AG= new LCClass("AG", 600);

alert(AC.LCName + AC.maxValue);