DEV Community

Discussion on: You may not know destructuring yet

Collapse
 
xavierbrinonecs profile image
Xavier Brinon

myInput?.addEventListener allows to get read of the if statement.
Always good to keep your code as close to the left as possible.