Austin Coding Academy Blog Post 2

matt coston
1 min readAug 10, 2020

--

  1. Describe one thing you’re learning in class today. Answer: I learned how to access arrays within arrays in JS.
  2. What is “use strict”;? What are the advantages and disadvantages to using it? Answer: Use strict is new for ES5. The advantage and disadvantage to using it is that you cannot use undeclared variables. This means your variables have to be declared before usage.
  3. Explain function hoisting in JavaScript. Answer: Hoisting moves variable and function declarations to the top of the scope before code is executed. For more information read this article. https://scotch.io/tutorials/understanding-hoisting-in-javascript#:~:text=Hoisting%20is%20a%20JavaScript%20mechanism,scope%20is%20global%20or%20local.
  4. Explain the importance of standards and standards bodies like ECMA. Answer: ECMA provides standards for the interoperability of websites. This governing body is good for making sure JS is usable across the world the same way.
  5. What actions have you personally taken on recent projects to increase maintainability of your code? Answer: I often go back and add comments or fix line spacing in previously written code. I am trying to get better about commenting as I go.
  6. Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it? Answer: Assigning variables globally can be easily overwritten further down in a script.

--

--

matt coston
matt coston

Written by matt coston

0 Followers

Hey there! I'm an IT manager by day, and I dabble in all things web development by night.

No responses yet