Day 42: April 9, 2019

Today’s Progress: Introduction to JavaScript Pt. 3 (FCC)

Thoughts: So much JavaScript.

I feel like I’m stuck in some terrible JavaScript nightmare void.

Totally only being partially overdramatic here. P a r t i a l l y.

Honestly, compared to yesterday, today was much easier. Focus was on functions. From manipulating arrays with pop() & push() to creating my own functions with specific arguments.

Today’s most time consuming challenge required me to write a function that took two arguments and printed the sum to the console.

I managed to get the function written, but when I called it the second time it wouldn’t return an answer.

Check out why below:

console.log(1 + 2)

Instead of passing the parameters into the log function, I put the actual numbers 1 & 2. It took me a while to figure it out the issue and you can bet when I did I felt hella silly.

console.log(a + b)

It’s always the smallest things causing trouble, I swear.

Key Takeaways From Day Forty-Two:

SOOO, the biggest takeaway from today’s challenge was var and setting global variables. For some strange reason my brain thought that declaring a variable with var made it automatically global.

So I’m sure you all could imagine my surprise when things were appearing to be opposite on the following lesson. I stubbornly tried to search if the lesson was mistaken for several minutes before I finally checked back with the initial global variable lesson:

oh.
ooooh.
ooooooooooh.

Yeah. I was mistaken. Always double check your notes, family.

Link To Project: N/A



Leave a Reply

Your email address will not be published. Required fields are marked *

css.php