Can the following 5 lines be condensed into a single line array?
var exmplArray = [];
exmplArray['hours'] = 0;
exmplArray['overtime'] = 0;
exmplArray['income'] = 0;
exmplArray['expenditure'] = 0;
I have tried the following but an error kicks in: 'Uncaught ReferenceError: Invalid left-hand side in assignment'
var exmplArray = ['hours' = 0, 'overtime' = 0, 'income' = 0, 'expenditure' = 0];
any ideas?