New in HTML 5 is a framework to perform calculations, using, among others, <output>.
Before this, you would use Javascript for everything, including presenting the output.
Is there any advantage of using HTML 5 Calculations over JS (or vice versa)?
Obviously JS can do more complicated things, as well as use numbers retrieved from other places, but are there any others?
<output>isn’t used to perform calculations, it is used to express the result.The calculation is still performed by JS, you just have an element with new semantics and a helpful DOM interface to present them to the reader.