Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Circle(x, y, r) {
- function r_squared() {
- return Math.pow(r, 2);
- }
- function area() {
- return Math.PI * r_squared();
- }
- return {
- area: area
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement