Jacob Johns

aspiring developer

Debugging

The process of going through your code, finding issues, and fixing them

JavaScript console to check variable value

console.log(); prints the output of () in the console


typeof to Check Type of Variable

typeof returns the data structure, or type, of a variable


Type-os, Quotations, Parentheses, Braces, Operators, etc...

Watch for type-os and close your (), [], {}, and user === where applicable

Nothing to really show here. Practice was several lines of code with missing braces, or type-os

Something unrelated to a type-o is to check for function's arguments being supplied in the incorrect order


Off By One Errors when indexing

sometimes called OBOE


Caution when Reinitializing Variables

a potential issue is when variables either should be reinitialized, and aren't, or vice versa


Prevent Infinite Loops

just...no...

Again, not much here to show. A page to read with an example to fix. Changed != to <= to get the solution.


Debugging Lesson Complete Image