Why does this JavaScript optional chaining hide the bug?

Why does this JavaScript optional chaining hide the bug in a form. The JavaScript code uses optional chaining when the value could be zero. In JavaScript 0 is valid but optional chaining skips it.

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

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

Why does this JavaScript optional chaining hide the bug? #javascriptzero

YouTube

What's wrong with this JavaScript typeof null?

What's wrong with this JavaScript typeof null returning object. The JavaScript code checks typeof before accessing properties. In JavaScript validation this lets null through and crashes on property access.

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

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

Whats wrong with this JavaScript typeof null? #javascriptbackend

YouTube