What does assigning a variable to {}, mean? Is that initializing it to a function? I have code in a javascript file that says this
{}
GLGE.Wavefront =
It does create an empty object.
var myObj = {};
Within an object you can define key/value pairs, e.g.:
myObj.color = 'red';
A value can be a function, too:
myObj.getColor = function() { return this.color };