Thursday 13 February 2014

WDI Progress Update - Javascript MTA and ATM

Challenges:
  1. Homework MTA in JS (fully compiled) - Thanks to Taryn East and Pranava Swaroop for key Javascript tips enabling my MTA code to compile, and appropriate use of DOM in ATM app teaming with Sam Peters.

  • Structure code with REF DATA, FUNCTIONS, TESTS
  • Structuring JS objects structured with property labels and values (similar to hashes in Ruby)
  • Access to Object property names (passed as arguments to functions) within functions requires explicit use of 'Object.keys(...'
  • Values of objects passed to functions (i.e. line[stop], not line.stop)
  • Repl.it - Error debugging JS, function to display alerts as console logs

Curiosity:
  1. MTA app using constructors and prototypes?
  2. Codepen.io

No comments:

Post a Comment