Question: what is the difference between console.log and return?
Answer: log and return in javascript? Return is used to interrupt the flow of execution of a function and return some value (or not). console. log is used to print information to the console (acessible by F12) of the browser.