Which is faster and/or more performant, or does it really not matter and is up to preference?
Option 1: using object literal notation:
var Company = {
colors : ['#000000', '#ffffff'],
answers : ['A','B','C','D'],
};
Option 2: not sure what this is called but I've seen it especially with classes and prototypes
var Company = {};
Company.colors = ['#000000', '#ffffff'];
Company.answers = ['A','B','C','D'];