JSFiddle - React, Tailwind, and code Playground
JavaScript
var objMap = new Map(500,500);
var myCities = objMap.genValues(5);
function Map(sizeX, sizeY) {
this.sizeX = sizeX;
this.sizeY = sizeY;
}
Map.prototype = {
genValues: function (number) {
validateValues();
}
}
function validateValues(){
alert('hi');
}