Figuring out if my code is valid
So I figured out that in order to better learn programming, I'll write my own(-ish) code for a "graduation project"â an ARPG. The first topic that is implementable with my level of knowledge, is arrays, and I figured out that an array is the way to store player character's stats. Array itself seemingly causes no trouble, but I decided to specify that each character stat is, in fact, a compound object that consists of two base objects: a character starting class base stat plus an amount of stat points a player invested in a given stat on top of that. So the question therefore is: is that piece of code where I declare stat objects, valid? P.S.: if I in fact successfully learn JS and finish this project, I'm going to release it for free and list everyone who found time to help me with it, and my gratitude in advance to every person to do so. I'm not Yandere Dev, I stick to my word, watch me :) https://code.sololearn.com/W2fQzPDNzuco/?ref=app