Useful Javascripty things

Submitted by Nicolabell on Thu, 02/27/2020 - 15:24
  • Use data-set within html to create nice tidy objects you don't have to cache before using.
  • Pipe is alt gr, shift and backslash on linux and shift shift backslash on windows. ||||||||||||||||||
  • Use console.table to see a good version of a data set
  • More hella useful console / dev tool tricks including console.assert for testing if stuff is true:
  • console.dir shows all kinds of related stuff to the element you're logging
Add to useful block