Your constructor expects three parameters. You need to pass them when creating the shape with new: const square = new Shape('square', 4, 5);. calcPerimeter() doesn’t have any parameters but uses the previously saved values of the object. Therefore you can remove them from square.calcPerimeter().
On a general note: When posting code on this forum it would be helpful to use “code fences” (three backticks before and after your code) to properly format it: