Set the result of a calculation:
More "Try it Yourself" examples below.
The value property sets or returns the value of the <output> element.
The value represents the result of a calculation.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
value | 10.0 | Not supported | 4.0 | 5.1 | 11.0 |
Return the value property:
Set the value property:
Value | Description |
---|---|
result | Specifies the result of the calculation |
Return Value: | A String, representing the result of the calculation |
---|
Get the result of a calculation:
The result of x could be: