Temperature Class
It takes in a temperature (and possibly updates the stored temperature)
and makes it available in string format with °C added.
import { Temperature } from'@maximva/examenopdracht-maximva'const temperature: Temperature = new Temperature(28.25)
console.log(temperature.toString()) //"28.25 °C"
Temperature Class It takes in a temperature (and possibly updates the stored temperature) and makes it available in string format with °C added.
import { Temperature } from '@maximva/examenopdracht-maximva' const temperature: Temperature = new Temperature(28.25) console.log(temperature.toString()) //"28.25 °C"