Hello, can anyone tell me what does the return result; command do in this code?
The return command passes the value stored in the variable result out of the function.
function returnThis() {
return "This";
}
console.log(returnThis());
Hello, can anyone tell me what does the return result; command do in this code?
The return command passes the value stored in the variable result out of the function.
function returnThis() {
return "This";
}
console.log(returnThis());