Got a question I don't understand, can anyone make sense of it?

Posted by user275074 on Stack Overflow See other posts from Stack Overflow or by user275074
Published on 2010-03-18T13:28:46Z Indexed on 2010/03/18 13:31 UTC
Read the original article Hit count: 223

Filed under:
|

Question on a on-line resource paper:

  1. Create javascript so that the following methods produce the output listed next it.

    circle = new Circle();
    console.log(circle.get_area());  // 3.141592653589793
    circle.set_radius(10);
    console.log(circle.get_area());  // 314.1592653589793
    console.log(circle);             // the radius of my circle is 10 and it's area is 314.1592653589793
    

Can anyone understand what is being asked?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about beginner