What's wrong with this JavaScript BigInt mixing with Number?

What's wrong with this JavaScript BigInt mixing with Number in a calculator. The JavaScript code adds BigInt and Number. In JavaScript this throws and crashes the app.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #jav...

https://www.youtube.com/watch?v=Ldda7gXnons

Whats wrong with this JavaScript BigInt mixing with Number? #javascriptnumber

YouTube

What's wrong with this JavaScript Object.assign overwriting?

What's wrong with this JavaScript Object.assign overwriting nested objects. The JavaScript code uses Object.assign for config merge. In JavaScript nested objects are copied by reference and get overwritten.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #ja...

https://www.youtube.com/watch?v=WLF_6Q9d75Y

Whats wrong with this JavaScript Object.assign overwriting? #javascriptcodereview

YouTube

Why does this JavaScript NaN break every comparison?

Why does this JavaScript NaN break every comparison in a validator. The JavaScript code uses === to check for NaN but NaN is not equal to itself. In JavaScript forms invalid numbers pass silently.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliabilit...

https://www.youtube.com/watch?v=coD1e_eGT5w

Why does this JavaScript NaN break every comparison? #javascriptengineering

YouTube

Why does this JavaScript toFixed return string?

Why does this JavaScript toFixed return string in a sum. The JavaScript code uses toFixed for display and then adds the result. In JavaScript toFixed returns a string so addition concatenates.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javasc...

https://www.youtube.com/watch?v=x0GQuQEY6Yw

Why does this JavaScript toFixed return string? #javascriptperformance

YouTube

Why does this JavaScript Object is vs === for NaN?

Why does this JavaScript Object is vs === for NaN check. The JavaScript code uses === to detect NaN. In JavaScript Object.is is needed for NaN and negative zero.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #javascriptengineeri...

https://www.youtube.com/watch?v=ViTzYGW4VsQ

Why does this JavaScript Object is vs for NaN? #whatswrongwiththisjavascriptcode

YouTube

Why does this JavaScript WeakMap key garbage collected?

Why does this JavaScript WeakMap key garbage collected too early. The JavaScript code stores data in WeakMap keyed by object. In JavaScript without a strong reference the entry disappears.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #ja...

https://www.youtube.com/watch?v=Fhsma8Whwqc

Why does this JavaScript WeakMap key garbage collected? #javascriptreliability

YouTube

Why does this JavaScript Object keys on array?

Why does this JavaScript Object keys on array returning string indices. The JavaScript code uses Object.keys on an array. In JavaScript keys are string numbers and holes are skipped.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascriptapi #ja...

https://www.youtube.com/watch?v=py5dxuq7WYI

Why does this JavaScript Object keys on array? #javascriptsecurity

YouTube

Why does this JavaScript substring vs substr deprecated?

Why does this JavaScript substring vs substr giving different results. The JavaScript code uses substr which is deprecated and has different semantics. In JavaScript substr start and length vs substring start and end.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperforma...

https://www.youtube.com/watch?v=NuJUpsP2c4E

Why does this JavaScript substring vs substr deprecated? #javascriptperformance

YouTube

Why does this JavaScript Array from object returning wrong?

Why does this JavaScript Array from object returning wrong length. The JavaScript code creates array from array-like using length. In JavaScript a malicious length can allocate huge or wrong size.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptrel...

https://www.youtube.com/watch?v=RXjQ1w5hEeg

Why does this JavaScript Array from object returning wrong? #whatswrongwiththisjavascriptcode

YouTube

What's wrong with this JavaScript Array push return?

What's wrong with this JavaScript Array push return in a chain. The JavaScript code chains after push assuming it returns the array. In JavaScript push returns the new length not the array.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #java...

https://www.youtube.com/watch?v=EPiy-R7pxpU

Whats wrong with this JavaScript Array push return? #javascriptbackend

YouTube