33.) Methods The Unexpected End of Input Error Again


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;


Did you close your perimeter method? :slight_smile:


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


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