This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

What's going on here? Simple assignments don't work?

  • 1 reply
  • 0 have this problem
  • Last reply by walt20

more options

As you can see in the attached screenshot, grandTotals.winningScore is 9. We've just assigned it to scoreNumber, but scoreNumber is "undefined".

As you can see in the attached screenshot, grandTotals.winningScore is 9. We've just assigned it to scoreNumber, but scoreNumber is "undefined".
Attached screenshots

All Replies (1)

more options

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.

Modified by walt20

Helpful?

Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.