# JavaScript Worksheet: Classes

1. Create a class called `Rectangle` with constructor function to create objects representing rectangles with length and width properties and a method to calculate the area. Use the `Rectangle` class to create an instance and print the area of the rectangle to the console.

1. Now create a subclass of `Rectangle` called `Square` which is a rectangle with equal length and width sides and has a constructor which only takes one argument. Use the `Square` class to create an instance and print the area of the square to the console.
