Fork, clone, debug index.js
- Global variables.
- global variables are very dangerous. You may have no idea where they are declared or what code assigned to the variable
- debug index.js. What is the value of the mysteryvalue variable.
- Loops
- debugging a loop may not be ideal if you have to observe the entire loop execute
- debug functions.js. What is the value of startingNumber immediately before the loop executes? after the loop executes.
- Function calls
- It may be difficult to determine what code called a function.
- debug functions.js. What file and line number is this function being called from?
- Where is a function
- You may see a function call and need to know where that function is defined
- Step into index.js line 10, what file and line number is the function
comeFindMe
defined.