Class 03 Class Notes - Ginsusamurai/seattle-301d58 GitHub Wiki

array.sort()

  • treats all items as a string by default [24, 23, 1, 3] -> [1,23,24,3]
arr.sort((a,b) => {
   return b-a;
   });

handlebars notes and documentation

  • create a template on the page that can easily be identified
    • this should include all the keys desired to render
  • make a handlebars specific template with the html in it
  • create a context item that has the key/val pairs you want
  • put context in the template and then append the template to the DOM