And how come prototype has a member called Window_Status.prototype.drawActorNickname
That doesn't seem like the "drawActorNickname" was made by javascript but rather from RPG Maker API.
Edit: What does this "prototype" member do exactly?
In the above case, prototype adds the drawActorNickname method (function) to to the Window_Status class (object).
For a more practical example, you can use your own code to add a method:
Window_Status.prototype.drawASillyFace = function () {console.log("A silly face");}
The prototype adds the method to the Window_Status object, so when you declare an instance of Window_Status (for example):
var WindowStatusInfo = new Window_Status();
You can now call your drawASillyFace function with:
WindowStatusInfo.drawASillyFace();
Use of the Prototype member adds methods (functions), and properties (variables) to a class (object), that will be applied to all instances of that class. So, you can define many Window_Status() and they will all have a drawASillyFace method.
Learning the API is a lot easier if you understand how these Javascript classes work. The next big step in learning is playing around with the code, try making some simple plugins. It might be a little difficult, but it's lots of fun.
🙂