Second Javascript exercise

🎖️
Write a JavaScript program to create a class called ‘Rectangle’ with properties for width and height. Include two methods to calculate rectangle area and perimeter. Create an instance of the ‘Rectangle’ class and calculate its area and perimeter.


Write your solution below

Solution in Codepen