I took handwritten notes while I was working through a JavaScript tutorial. It was helpful to be able to write anywhere and draw diagrams. Still, I tend to type most of my notes and have accumulated a set of lengthy notes with code examples and comments in a personal documentation repo.