Handwritten Notes
This approach has significant positives. In class, you cannot write fast enough to record everything the professor is saying, so you must decide which way to summarize the key points. Doing so forces you to think about the information, which in turn promotes greater understanding.
This method can also be effective if your professor posts their lectures online ahead of time. You can print off the lecture outline and add your own notes as you listen.
Digital Notes
This approach also has some positives. You can keep your notes more organized as editing your writing in a Word or Google document is easier than doing so in a notebook. You can also use a program like OneNote to organize notes from each of your classes in one tidy, organized space.
If you feel comfortable typing on a computer, you can record ideas faster than doing so by hand. Still, this can potentially be a negative. Students should not mindlessly copy notes from a textbook or slides displayed in class. While in class, they should listen to the professor and try to summarize their ideas using key vocabulary.
Ultimately, you can try both formats and see what feels more comfortable. In the end, the goal is to listen to what your professor is saying and summarize the main ideas using key words from the lecture.