Skip to content

Instantly share code, notes, and snippets.

Created November 6, 2015 16:20
Show Gist options
  • Select an option

  • Save anonymous/34f5deea97f99a6a238b to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/34f5deea97f99a6a238b to your computer and use it in GitHub Desktop.
Measurement Converter // source http://jsbin.com/timego
<!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
</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
</script></body>
</html>
/*
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment