Return storation

Hi, can anyone help. I don’t know where is the storage for return. The result after being returned will come back to celcius or multiplyByNineFifths?

looking at the math:

it should come back as farenheith, but you have broken down the math over two functions.

Can you elaborate more on return. When a result is returned in a function, where will it be stored?

return is literally what it says, the function handing something back:

const example = () => {
    return "hello world"

// store returned result in x variable
x = example()

in your case, it isn’t stored anywhere within the program, given you only log it to the console.

Well, running programs are stored within the RAM of computer, so clearly its somewhere, but you don’t store it in a variable or anywhere else in your program to access the values alter.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.