I just don't understand how <output> works

I’m currently researching about every HTML element so I can learn more functions, but I don’t understand the <output> one. How do I choose the type of calculation? Do I need to use JavaScript? What’s the oninput attriute that I see in examples of this code? If someone can at least answer one of these questions and/or explain how this element works, that would help.

It’s output in general, it’s not dependent upon the type of calculation, only that it is the result of a calculation or some type of user action. I guess they could have called it <result> as well. Yes, I would think that most of the time you would use JS to inject the text into the output tag.

The MDN docs has an example at the bottom of how you would use it.