Rectangle Class in OOP in JavaScript
Задание 1
Create a class Rectangle, in which the width and height of the rectangle will be written in the properties.
Задание 2
In the Rectangle class, create a getSquare method that will return the area of this rectangle.
Задание 3
In the Rectangle class, create a getPerimeter method that will return the perimeter of this rectangle.
Задание 4
In the Rectangle class, create a getRatio method that will return the area divided by the perimeter.