#Tenzies: hold() function works with ternary, but not if-else

4 messages · Page 1 of 1 (latest)

keen atlas
#

Can anyone help me with the "Hold dice part 2" lesson in the Tenzies project? I'm not sure why my solution doesn't work whereas the instructor's does, even though they are logically the same.

Scrim here: https://scrimba.com/scrim/cof6b4560b4817232e471ca72
Original lesson: https://scrimba.com/learn/frontend/tenzies-hold-dice-part-2-cof4842fcb65b330ef2bf07f3

Scrimba

Learn to code with interactive scrims. Our courses and tutorials will teach you React, Vue, Angular, JavaScript, HTML, CSS, and more. Scrimba is the fun and easy way to learn web development.

Scrimba

Learn to code with interactive scrims. Our courses and tutorials will teach you React, Vue, Angular, JavaScript, HTML, CSS, and more. Scrimba is the fun and easy way to learn web development.

#

I know ChatGPT isn't super reliable for code help, but I hear it's pretty competent when it comes to basic javascript and React. For what it's worth, here's what he had to say:

#

Tenzies: hold() function works with ternary, but not if-else

stiff lynx
#

Double check the property name in your function 🙂