Skip to main content
Antonio Ribeiro's user avatar
Antonio Ribeiro's user avatar
Antonio Ribeiro's user avatar
Antonio Ribeiro
  • Member for 8 years, 1 month
  • Last seen more than 2 years ago
comment
Plotting JSON locations using Google Road API with Javascript Promise chaining
Sorry for the delayed comment. But without further ado: WOW! This was like really impressive, I really liked the result and been studying it a lot. Couple of questions though, just to understand the rationale and standards, 1) why creating functions with the arrow functions? just to preserve the this object? 2) Why one function per step even though it would never (until now) be used again, for readability? 3) I thought one of the plus of Promises was the fact it doesn't need to declare variables out from its scope, so that let points; would never exist or am I really wrong?
awarded
awarded
awarded
Loading…