Learn Javascript, return, codecademy

Lesson Summary

In this codecademy tutorial we look at return statements. Return statements in javascript functions allow us to return a result after a function has finished running. Return statements are preferred over console.log statements. In this lesson we create a return statement to return the price of pizzas ordered depending on how many times the takeOrder function is called.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required