Returnning in a Function


#1

How do you use console.log to print out the result of a return?


#2

If you want to see the return value of a function via console.log directly, you could just call the function inside a console.log.


#3
var abc = function(a, b){
return a + b
}
console.log(abc(1,2)) // result 3 in console

look code above


#4

Thanks alot. Seriously..