+ 5)
>> 475
how can i print 52 instead of 457 ?
Number(val_seed) + 5 should do the trick
Basic javascript stuff you can't to maths with string type so you need to convert it to number type..
In javascript it will automaticly convert
not if you apply arithmetics on string and number, it will use it as a string, but im not sure if mocha/chai use double equal sign or triple equal sign when comparing
Yeah JavaScript things last value as string type aswell eventhough its a number type and do string concatenation instead of basic maths 😂😂
The javascript is so shitty in these logics🤦♂😂
Обсуждают сегодня