- How do you explain the purpose of breakpoints, and what can you learn by using them?
- Explain the benefits of using the debugger for someone learning the basics of software development.
- How does a call stack help a developer focus on code that is incorrect?
- What is the purpose of "stepping through" your code when using the debugger?
- What are the key differences between a JavaScript object and a JavaScript array?
- Why is it important to use variables in programming, and what could be the consequences of not using them properly?
- Can you explain the importance of variables when trying to understand code written by someone else?
- How would you explain the concept of a breakpoint to someone who has never programmed before?
- Why might you choose to use an object to represent data rather than a series of individual variables?
- Why is it important to understand the data type of the value that you are working with in your project?
- In what situations would you use a
for..ofloop? - How would you explain the difference between
for..ofandforloops to someone new to JavaScript? - Describe how you would use a
for..ofloop to iterate over an array and modify the elements it contains. - What are the two variables needed when you define a
for..ofloop?
- What are the advantages of using functions in your code?
- How do you differentiate between when a function is defined and when it is invoked in your code?
- What is the role of parameters within functions, and how do they enhance a function's capabilities?
- In your own words, what does it mean to pass a value to a function as an argument?
- In what way do you think understanding the difference between parameter and argument can help in debugging a function that is not working as expected?
- Explain why a function that works correctly with one set of arguments might not work with another. How would you go about troubleshooting this?
- Describe an error you encountered while writing a JavaScript function. How did you solve it, and what did you learn from the experience?
- Reflect on a time when you used a function parameter to change the outcome of your function. Why was the parameter necessary?
- How do you use an
ifstatement to make decisions in your code, and can you give an example of a boolean condition? - Describe how an
ifstatement could control the flow in a program that simulates a traffic light. What would the boolean conditions represent?
- How would you convince someone of the importance of learning to code with proper indentation and formatting? What difference does it make?