Learn Javascript, 2017, return II, Codecademy (Return Statements) VIDEO
In this lesson we look further into javascript return statements. A return statement returns a value and can be called from another function. In this lesson we add to our pizza order application by adding a tax function that calculates sales tax. Its important to note the difference between a console.log and a return statement. In javascript a console.log simply outputs computed data on the screen while a return statement is used to usually end a function call and return where it was called from with an optional result.
Other Videos By We Will Code 2017-06-12 Repeat A String, Repeat A String, freeCodeCamp Review Basic Algorithm Scripting lesson 8 2017-06-12 Learn Javascript 20117, Arrays, length property, Codecademy 2017-06-10 Learn Javascript 2017, Arrays, Property Access, Codecademy 2017-06-10 Learn Javascript 2017, Arrays, Create an Array, Codecademy 2017-06-10 Learn Javascript 2017, Arrays, Codecademy 2017-06-09 Learn Javascript 2017, Review Scope, Codecademy 2017-06-09 Learn Javascript 2017, Scoping, Codecademy 2017-06-07 Learn Javascript, 2017 Functional Scope, Codecademy 2017-06-06 Learn Javascript, 2017 Global Scope, Codecademy 2017-06-02 Learn Javascript, Review Functions, 2017 Codecademy Review 2017-06-02 Learn Javascript, 2017, return II, Codecademy (Return Statements) 2017-05-30 Codefights, centuryFromYear, 2017, Javascript Code Arcade, Century From Year Function 2017-05-27 What is Codefights, Intro To Codefights, 2017Javascript Code Arcade, Add Function 2017-05-25 Learn Javascript, return, codecademy 2017-05-25 Learn Javascript, Parameters II, codecademy 2017-05-25 Learn Javascript, parameters, codecademy 2017-05-09 Learn Javascript, Functions, codecademy, Javascript Tutorial 2017-05-04 Learn Javascript, Introduction to functions, codecademy 2017-04-30 Learn Javascript, Review Control Flow, codecademy, 2017-04-30 Learn Javascript, Switch Statements, Codecademy, Javascript Tutorial 2017-04-24 Learn Javascript, Logical Operators, codecademy, Javascript Tutorial
Tags: javascript functions
functions in javascript
codecademy functions
javascript return statements