I'm trying to create two-column array and insert few rows. I noticed that third row is not getting through due to error in my code. Currently it seems to has wrongly defined structure where one pair is assigned to first row, second pair goes to second column, third is skipped.
And my goals is to have NAME|Salary table.
//2D array
var e = [];
var numberofemployees = 0;
function addEmployees(name, salary){
var arMod = e.push([name,salary]);
return e;
//return Object.keys(arMod).length;
}
addEmployees(["Mark", 5000], ["Jack", 1500], ["Maria", 2000]);