What's going on here? Simple assignments don't work?
As you can see in the attached screenshot, grandTotals.winningScore is 9. We've just assigned it to scoreNumber, but scoreNumber is "undefined".
Wszystkie odpowiedzi (1)
i fixed this by creating an object with the three properties instead of using an array. I have no idea why it works or why the simple assignment statement in the attached image didn't work.
I'm not marking this as "Solved the problem" because I just found a way around it: as far as I'm concerned, something is still wrong.
Zmodyfikowany przez walt20 w dniu