Skip to content

Instantly share code, notes, and snippets.

@alexpelan
Created March 19, 2018 21:50
Show Gist options
  • Save alexpelan/1cbf2d3035b44ff9227833ad45d6d7ae to your computer and use it in GitHub Desktop.
Save alexpelan/1cbf2d3035b44ff9227833ad45d6d7ae to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=1cbf2d3035b44ff9227833ad45d6d7ae
<!DOCTYPE html>
<html>
<head>
<title>08.1 Return Statements</title>
</head>
<body>
<div id="message"></div>
</body>
</html>
{"enabledLibraries":["jquery"],"hiddenUIComponents":["editor.css","console"]}
//Independent Practice
//Write a fullName function. Call the function with your first, middle name, and last name. Save the return value in a variable. Use jQuery to have the return value appear on the page.
function fullName(firstName, middleName, lastName){
}
//Write an product function. Call the function with 2 numbers. The return value should be the product of both numbers. Save the return value in a variable. Log the variable to the console.
//Write an age function. Call the function with your birthyear. The return value should be your age. Save the return value in a variable. Use jQuery to have the return value appear on the page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment