Class function not working online (ReferenceError: myClass is not defined)

Yes! There was the clue that I needed. I just had to access the class before initializing it like this:

class stim {};
rated_stimlist.push(stim(img, gender, rating));
1 Like