Files
2022-02-02 14:08:07 +01:00

11 lines
172 B
JavaScript

function area(rect) {
return rect.width * rect.height;
}
const result = -5
|> Math.abs(^^)
|> { width: ^^, height: ^^ + 3 }
|> area(^^);
expect(result).toBe(40);