Created
March 19, 2018 21:50
-
-
Save alexpelan/1cbf2d3035b44ff9227833ad45d6d7ae to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=1cbf2d3035b44ff9227833ad45d6d7ae
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>08.1 Return Statements</title> | |
</head> | |
<body> | |
<div id="message"></div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"enabledLibraries":["jquery"],"hiddenUIComponents":["editor.css","console"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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