I’m not going to lie, I’m writing this much later than I meant to, but after writing my own higher-order functions from scratch I understand them much better and can really appreciate them now. Time to re-do our pig latin assignment with .map() instead of a forEach loop!

Q |…

--

--

Q | What’s the difference between an “attribute” and a “property”?
A | HTML has attributes directly connected to HTML elements. In the example <input type=”text” value=”0"> “type” and “value” are both attributes on the input tag. In Javascript we can access these attributes through properties that exists on the element’s…

--

--

Week 2 — Clean Code

I’m already feeling slightly less intimidated by JavaScript… Still quite daunting but it’s starting to feel more familiar.

Q. | “What actions have you personally taken on recent projects to increase maintainability of your code?”

A. | I’m trying to get better about adding comment throughout my code. Intrinsic Documentation is also something I’m trying to work on. I feel like my code sometimes is indented weird, and hard to read because I move things around a bit and say “oh, I’ll fix that later” or “I’ll rename that variable later…” then forget. So I’m trying to do a better job out the gate of using logical variable names, formatting my code correctly and adding useful comment for each piece of the code.

--

--