what is the difference between return and console.log?
log and return in javascript? Return is the result a subroutine, or function, will return, and console. log is a way to log to the "console" where available. The console is a destination made available by certain browsers that enables Javascript programmers to stream text to an output e.g logging.