DevLeague Day 5

New lessons learned:

  1. DOM Manipulation, including .innerHTML, .onclick, document.getElementById
  2. Brushing up on HTML and CSS
  3. Number and unit manipulation (because I did my project the hard way)

Rather than doing this:

  • Do everything on the display and then parse it into the JavaScript

I did:

  • Every time anything is clicked, mathematically compute this using JavaScript.
  • Ended up using I think >15 IF statements, putting numbers in an array of >2 length, and using multiple array methods.
  • And of course, ended up taking twice as long.

BUT … I did get everything in the end (A great exercise for understanding module patterns — which I’m now quite comfortable with, and getting the HTML to talk to the JavaScript (still getting the hang of).

Like what you read? Give Owen Yang a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.