Created
November 10, 2015 21:56
-
-
Save anonymous/abaedd78e1a548cb3a3c to your computer and use it in GitHub Desktop.
Measurement Converter // source http://jsbin.com/veyowa
This file contains 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>Measurement Converter</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
/* | |
Feet to Inches Converter | |
Directions: Make a program that converts an object's size in feet into its size in inches | |
Instructions: | |
1. Declare a variable called sizeInFeet and set it equal to 4 | |
2. Declare a variable called sizeInInches and set it equal sizeInFeet times 12 | |
3. Print the size in inches to the console. | |
Bonus #1: Print " That object is __ inches tall" to the console | |
Bonus #2: Use the prompt method to first ask the user "What is the object's size in feet?" | |
*/ | |
//Write your code on the next line | |
var sizeInfeet = 4; | |
var sizeIninchs = sizeInfeet * 12; | |
console.log(sizeIninchs); | |
var name = prompt | |
</script> | |
<script id="jsbin-source-html" type="text/html"> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Measurement Converter</title> | |
</head> | |
<body> | |
</body> | |
</html> | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">/* | |
Feet to Inches Converter | |
Directions: Make a program that converts an object's size in feet into its size in inches | |
Instructions: | |
1. Declare a variable called sizeInFeet and set it equal to 4 | |
2. Declare a variable called sizeInInches and set it equal sizeInFeet times 12 | |
3. Print the size in inches to the console. | |
Bonus #1: Print " That object is __ inches tall" to the console | |
Bonus #2: Use the prompt method to first ask the user "What is the object's size in feet?" | |
*/ | |
//Write your code on the next line | |
var sizeInfeet = 4; | |
var sizeIninchs = sizeInfeet * 12; | |
console.log(sizeIninchs); | |
var name = prompt | |
</script></body> | |
</html> |
This file contains 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
/* | |
Feet to Inches Converter | |
Directions: Make a program that converts an object's size in feet into its size in inches | |
Instructions: | |
1. Declare a variable called sizeInFeet and set it equal to 4 | |
2. Declare a variable called sizeInInches and set it equal sizeInFeet times 12 | |
3. Print the size in inches to the console. | |
Bonus #1: Print " That object is __ inches tall" to the console | |
Bonus #2: Use the prompt method to first ask the user "What is the object's size in feet?" | |
*/ | |
//Write your code on the next line | |
var sizeInfeet = 4; | |
var sizeIninchs = sizeInfeet * 12; | |
console.log(sizeIninchs); | |
var name = prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment