Created
December 6, 2014 07:12
-
-
Save prio101/aafd7431f0e3e6ec3676 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/yusawe
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> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| function divideBy(nominator, denominator){ | |
| if(denominator === 0){ | |
| throw new Error('Denominator must be non zero.'); | |
| } | |
| return numerator / denominator ; | |
| } | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript">function divideBy(nominator, denominator){ | |
| if(denominator === 0){ | |
| throw new Error('Denominator must be non zero.'); | |
| } | |
| return numerator / denominator ; | |
| }</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
| function divideBy(nominator, denominator){ | |
| if(denominator === 0){ | |
| throw new Error('Denominator must be non zero.'); | |
| } | |
| return numerator / denominator ; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment