#addition

10 messages · Page 1 of 1 (latest)

sonic breachBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
high gull
#

why is this in #998942774994927646

#

you are adding numbers with null

#

how is that supposed to work

#

nevermind you can in fact add numbers with null in javascript

proper blaze
#

I also already told you to use getNumber here

high gull
#

use the number getter as told

proper blaze
#

Why not just use getNumber?

high gull
#

at least try it

proper blaze
#

The difference is that getNumber gives you null which is 0 when added, while ?.value gives you undefined which will be NaN when added