Both.
Depends on the purpose.
Typing : If I can get my hands on any gadget and I have time, at home, or in a safe place to use such as a private car, and I want to type and organize my thoughts neatly then yes.
Handwriting: If I can’t type and I need quick notes that doesn’t include wasting some seconds of just opening my phone and an app, and the danger of being robbed, plus if it’s only for noting messily.