Actually there’s nothing in common between them.
return
– returns execution to the caller with optional result
console.log()
– logs out information in console.
More Related Contents:
- How would I make a Timer which times things in 0.75 seconds Javascript?
- Is Chrome’s JavaScript console lazy about evaluating objects?
- How can I get the full object in Node.js’s console.log(), rather than ‘[Object]’?
- Recursive function returns undefined
- Can’t access object property, even though it shows up in a console log
- Does return stop a loop?
- What is console.log?
- Return multiple values in JavaScript?
- Why doesn’t a Javascript return statement work when the return value is on a new line?
- Google Chrome console.log() inconsistency with objects and arrays
- Why is console.log() considered better than alert()?
- How does Asynchronous Javascript Execution happen? and when not to use return statement?
- JavaScript – Owner of “this”
- Does console.log invokes toString method of an object?
- Can’t get correct return value from an jQuery Ajax call [duplicate]
- Why does console.log say undefined, and then the correct value? [duplicate]
- Why does a module level return statement work in Node.js?
- How to make chainable function in JavaScript?
- Return value from nested function in Javascript [duplicate]
- Return value of recursive function is ‘undefined’
- Restoring console.log()
- Get return value from setTimeout [duplicate]
- console.log(myFunction()) returns undefined
- Access function location programmatically
- Returning value from asynchronous JavaScript method?
- Is it better to return `undefined` or `null` from a javascript function? [closed]
- Why does a return in `finally` override `try`?
- How to disable console.log messages based on criteria from specific javascript source (method, file) or message contents
- Show original order of object properties in console.log
- javascript return of recursive function [duplicate]