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

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

What's wrong with this JavaScript setTimeout closure?

What's wrong with this JavaScript setTimeout closure in a loop. The JavaScript code creates timeouts in a loop with var. In JavaScript all callbacks see the final value.

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

https://www.youtube.com/watch?v=4_JoaMBt8IE

Whats wrong with this JavaScript setTimeout closure? #javascriptcodereview

YouTube

Why does this JavaScript Proxy trap missing?

Why does this JavaScript Proxy trap missing for operation. The JavaScript code uses Proxy but does not trap all operations. In JavaScript some property access bypasses the proxy.

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

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

Why does this JavaScript Proxy trap missing? #javascriptproxy

YouTube

What's wrong with this JavaScript destructure undefined?

What's wrong with this JavaScript destructure undefined throwing. The JavaScript code destructures a possibly undefined response. In JavaScript destructuring undefined throws and crashes.

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

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

Whats wrong with this JavaScript destructure undefined? #javascriptapi

YouTube

What's wrong with this JavaScript Array reverse mutates?

What's wrong with this JavaScript Array reverse mutates in place. The JavaScript code reverses an array and passes it on. In JavaScript reverse mutates the original and corrupts the source.

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

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

Whats wrong with this JavaScript Array reverse mutates? #javascriptengineering

YouTube

Why does this JavaScript new Date parse wrong?

Why does this JavaScript new Date parse wrong across timezones. The JavaScript code passes a date string without timezone. In JavaScript the parser interprets it as local and shifts hours for users.

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

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

Why does this JavaScript new Date parse wrong? #javascriptiso

YouTube