-
-
Save codecademydev/0e669d3215b776f4edce2ca43c6bbc1b to your computer and use it in GitHub Desktop.
Codecademy export
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
function Circle (radius) { | |
this.radius = radius; | |
this.area = function () { | |
return Math.PI * this.radius * this.radius; | |
}; | |
this.perimeter = function() { | |
return 2 * Math.PI * this.radius; | |
}; | |
// define a perimeter method here | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment