How are units of measurement handled in javascript?

  • Platform information:
    • Hardware: raspberry pi 4
    • OS: openhabian
    • openHAB version: 3.0.1
  • Issue of the topic: Units of measurement comparison with javascript

I am using the local temperature from OpenWeatherMap.org as a condition in rule I want to transfer to javascript
In Rules DSL I had:

if ((Localweatherandforecast_OutdoorTemperature.state as Number).floatValue >= 1 ) {

How could I transfer this to javascript?