Difference between console.log and return?

Entry NodeJS

Answer

console.log prints output to the console; return sends a value back from a function to its caller.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice