5a3c1b2d创建于 2025年8月3日历史提交
/**
 * @param {number} celsius
 * @return {number[]}
 */
var convertTemperature = function (celsius) {
    let kelvin = celsius + 273.15; // initialize kelvin and add 273.15 to celsius
    let fahrenheit = celsius * 1.8 + 32; // initialize fahrenheit and multiply 1.80 to celsius and add 32
    return [kelvin, fahrenheit]; // return kelvin and fahrenheit as an array
};