Chapter 5 - Arguments: passing data to 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
5.01 Relying on a variable outside of the function taqusi
5.02 Breaking a function by changing a variable name yaresa
5.03 Passing information to a function xucemu
5.04 Calling the same function with different arguments zavavo
5.05 Using the square function vequpi
5.06 A function with two arguments siyelu
5.07 Displaying a player's name yubahi
5.08 Displaying a player's name via an object property juhewi
5.09 Displaying a player's health nomija
5.10 Displaying a player's health via object properties zufoxi
5.11 Displaying a player's location yifahe
5.12 Displaying a player's location via object properties mejuki
5.13 Displaying a player's information likafe
5.14 Displaying a player's information using properties loteti

Extras: Using recent language features

ListingTitleJS Bin Code
5.15 Calling the same function with different arguments covemoh
5.16 Defining a function with a default argument ziyivu
5.17 Using the square function fikireq
5.18 Functions with two parameters qulicu
5.19 Displaying a player's information using properties wovufar