Skip to content

Instantly share code, notes, and snippets.

@heapwolf heapwolf/11.js
Created Jul 19, 2012

What would you like to do?
var pi = Math.PI;
function diameter(radius) {
return2 * radius;
function circumference(radius) {
return pi * diameter(radius);
function area(radius) {
return pi * Math.pow(radius, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.