JavaScript
\nvar maxArea = function(h, w, horizontalCuts, verticalCuts) {\n    horizontalCuts = [0,...horizontalCuts.sort((a,b)=>a-b),h]\n    verticalCuts = [0,...vertical
```\nvar maxArea = function(h, w, horizontalCuts, verticalCuts) {\n    horizontalCuts = [0,...horizontalCuts.sort((a,b)=>a-b),h]\n    verticalCuts = [0,...verticalCuts.sort((a,b)=>a-b),w]\n    let horimax = 1\n    let vertimax = 1\n    for (let i = 1; i < horizontalCuts.length;i++) {\n        horimax = Math.max(horizontalCuts[i] - horizontalCuts[i - 1],horimax)\n    }\n    for (let i = 1; i < verticalCuts.length;i++) {\n        vertimax = Math.max(verticalCuts[i] - verticalCuts[i - 1],vertimax)\n    }\n    return ( BigInt(vertimax) *  BigInt(horimax)) % 1000000007n\n};\n\n```
['JavaScript']