You are viewing a single comment's thread from:

RE: Refactoring For Reusability: Day Seven of "The Complete Node.js Developer Course"

in #javascript8 years ago

Always do type and value checking of the variable before you continue working with it. You are checking if ´note´ exists so you can avoid unexpected errors.