function myFunction(a,b) {
if (a>b)
{return; }
x=a+b };
myFunction(2,1);
console.log(x);//6
this is an example of the use of return in the runoob Javascript function page. I want to try what the value of x will be if it is returned directly in accordance with the if condition. As a result, the console returns 6. How does this work?