Possible Duplicate:
What is the 'new' keyword in JavaScript?
I'm learning about prototypes in Javascript and wondered what this code is doing. It's not like what I've run across in Java or C#:
function MyObject(Parameter)
{
this.testString = Parameter;
}
var objectRef = new MyObject( "myValue" );
What's going on with that new MyObject("value") bit? I understand that in javascript functions are objects, but I'm still wrapping my head around what's going on when you new() a function?