Q: All instances of the class inherit its attributes from this object, which also has properties whose values are functions that act as the class' instance methods.
The properties of the prototype object in a JavaScript class are inherited by all instances of the class. This means that the properties are shared by all instances and can be accessed using the . notation. Properties whose values are functions behave like instance methods of the class, which means that they can be called on instances of the class using the . notation.
The percentage error in the calculated area of the square is 4.04%.
This is calculated by taking the difference between the actual area and the measured area, and then expressing it as a percentage of the actual area.
In this case, the actual area is 100cm x 100cm = 10000 cm2 and the measured area is 102cm x 102cm = 10404 cm2
The difference (10404 - 10000) = 404 cm2 which is 4.04% of the actual area.