Learn Javascript, return, codecademy

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=HDb17PBdqgc



Duration: 5:30
1,801 views
13


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.







Tags:
javascript functions
functions in javascript
codecademy functions
javascript return statements