Actually there’s nothing in common between them.
return
– returns execution to the caller with optional result
console.log()
– logs out information in console.
Actually there’s nothing in common between them.
return
– returns execution to the caller with optional result
console.log()
– logs out information in console.