The type read-only property of the HTMLTextAreaElement interface returns the string "textarea".
type
HTMLTextAreaElement
"textarea"
The string "textarea".
const textArea = document.querySelector("textarea"); console.log(textArea.type); // "textarea"
<textarea>