Consider the following code:

function callMeMaybe()


var v1 = 1;

var v2 = 2;

return v1, v2;


function theCaller()


var v1 = 0;

var v2 = 0;

v1, v2 = callMeMaybe();

console.log(“The value of v1 is”, v1);

console.log(“The value of v2 is”, v2);


If the function theCaller is called, what will be written to the console? 

Hi @brookeru,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our community organized so users can more easily find information.

As you’ll notice, your topic is now here in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.



What programming language?

1 Like