-
-
Save Bijesse/adb94c87bab06db3feb8 to your computer and use it in GitHub Desktop.
Measurement Converter // source http://jsbin.com/timego
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>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> |
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
| /* | |
| 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