Chapter 6 - Return values: getting data from functions

Click the title to see the listing, solutions to exercises and video tutorials on this site. Click the JS Bin code to see the live listing on JS Bin.

ListingTitleJS Bin Code
6.01 Returning a value from a function yucate
6.02 Using an argument to determine the return value nijijo
6.03 Using the return value as an argument yapic
6.04 Returning the sum of two numbers haqapu
6.05 A function with three arguments jedigi
6.06 A collection of functions that return values lijufo
6.07 Getting a string for a player’s name hijeli
6.08 Getting strings for a player’s health and location pemore
6.09 Getting a string for a player’s information javuxe
6.10 Displaying player information using objects puteki

Extras: Using recent language features

ListingTitleJS Bin Code
6.11 Returning a value from a function xiwagux
6.12 Using the return value as an argument yerevom
6.13 Returning the sum of two numbers deqimur
6.14 Displaying player information using objects yuwuliv