JavaScript30 — Day 18

Adding up times with .reduce()!

  • We used parseFloat to turn strings back into numbers in today’s project, which I’ve seen before, but is one of those terms who’s name does not make sense with it’s functionality. I could benefit from researching this method more.
  • The code within the seconds variable is all readable to me, but at this point I would never have thought to stick so much functionality inside of a variable. My instinct probably would’ve had me write a function called “toSeconds” or something, and then try to apply that function to the timeNodes array. It was a new phenomenon for me to see a variable defined with so many methods on it, and I’m curious about it.

Creative person using her brain to learn how to code.