So I’m working on potential class delineators(not a word I know, but it should be; I don’t want to use the word delineations!) for a potential game. A starting array to represent this is as follows:
I was going for the first one. Brand new to arrays and trying to practice pulling out data from within the array and editing, etc. The one liner was due to copy pasting it from console.log, but do you mean the structure was wrong because I had one to many brackets? If I had done this in codepen jfiddle I see how much less confusing it may have been. Also, thank you.
I’m not sure if it is an issue with the console, but I tried it multiple times after changing the array code and continue to see ‘undefined’ as the returned value.