Javascript in MV, minor question

So, I do not know much JS at all, especially in the context of MV, but just looking at some plugins and looking through the code to try and get a handle on it. Is this similar to Minecraft modding, where basically, all I would be doing is taking the existing code and making modified classes of the existing code to make it do what I want, instead of creating code from scratch?

Is this how MV works, functions within plugins just modify existing classes and either rewrite them or extend them?

I'm trying to figure out how I can add custom stats.

EDIT: I do have some C# and Python experience, but JS is another beast to me
If you want to do it the easy way - simply just use multidimmensional array and set it whatever you like, the hard way will require someone who
actually knows perfectly classes and objects in MV. I prefer the easy way so I can't much help you.
MV's code is 100% open-source, so you can modify it how you want or even throw it away completely. But most plugins are "like Minecraft", because if you didn't want to create a 2D JRPG, you'd probably not use MV.

Original thread: https://forums.rpgmakerweb.com/threads/javascript-in-mv-minor-question.116279/