X Tutup
Skip to content
This repository was archived by the owner on Jul 4, 2019. It is now read-only.

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

15 - LocalStorage

An checklist that preserves its items in localStorage.

Changes made from original:

  • Modify file structure so that it's a bit more organized
  • Use data-index or id, don't need both
  • Check e.target.type instead of checking if e.target contains a string with matches()
  • Remove unnecessary call to populateList() in toggleDone()
  • Add functionality to remove checklist items

Things I learned:

  • If the object key and value have the same name, you can just put the name of the variable (in ES6)
  • Reset method of forms
X Tutup