Hello fellow coders.
welcome back to part 2 of some good habits to unblock yourself. If you missed the 1st part you can check it out right here:
Lets get started!
In part one I talked about console log and how it can help beginners like me see the errors and where they're located. In this article I will discuss the habit of learning error messages.
- If errors: The “==” operator performs a comparison while the “=” operator assigns a value, very easy to mix up.
- Mismatch brackets, case sensitive, overall spelling mistakes.
1.Using an Array method on non-Array object can cause an error to occurs, since you'll be calling a method on an undefined object.
map method can only be used for Array not object
2.Using null or undefined as an object. This is an error that occurs in browser when you read a property or call a method on a null or undefined object.
Those are some of common errors I've experienced. I'm certain in time my error list will grow as my knowledge on how to fix them.
Hope this article was helpful. Part 3 coming soon!
Thanks for reading me!
I’ve sent a message to my family and delegated my open source projects to my friends. With my last tweet sent, I turn off my laptop, phone, and tablet. My Digital Sabbath begins in 10 minutes: no digital devices for the next month.