this macht Eigenschaften öffentlich, also public.
<head>
<script>
function myConstructor() {
this.myProperty = 'hello';
this.anotherProperty = 'world';
}
var myObject = new myConstructor();
alert(myObject.myProperty);
</script>
</head>
Ausgabe: hello