JS Progress and Interview Questions

Jeff Crockett
2 min readFeb 3, 2021
  1. Describe one thing you’re learning in class today.

Leaning more about the logic behind functions has broadened my thought process to look for extraneous circumstances such as a negative outcome, null, undefined, and other outliers that require functions to anticipate any outcome.

2. What is "use strict";? What are the advantages and disadvantages to using it?

In ‘use strict’, all variables must be defined. It also makes your JS more secure and combs for bad syntax, returning those instances as errors. Lastly, it can protect you from using words saved for future versions of JS.

3. Explain function hoisting in JavaScript.

Hoisting will move all declarations to the top. This will allow a variable to be declared in any line of JS and that variable can still be used in functions that appear earlier in the code base.

4. Explain the importance of standards and standards bodies like ECMA.

Standards bodies help standardize the coding body into a format that has readability across many or all web browsers.

5. What actions have you personally taken on recent projects to increase maintainability of your code?

To improve maintainability, I had started showing more of my thought process, commented out. I’ve also started to standardize certain aspects of my code so it can be reused in later projects. This required a good use of variables and names that make sense.

6. Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?

Attempting to change global variables can cause code to clash with other existing code that may rely on those specific global variables. It is a ‘best-practice’ to avoid changing global variables.

Austin Coding Academy

--

--