33.) Methods The Unexpected End of Input Error Again


#1

I set it up just like the previous example so I guess I am missing something quite obvious lol Another pair of eyes for this would be nice O_o


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;
};


#2

Did you close your perimeter method? :slight_smile:


#3

Haha! I did call it xD It was quite obvious. Thanks man! I must have counted them up wrong when I checked to see if I had enough lol


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.