Javascript Solution
js\n/**\n * @param {number} h\n * @param {number} w\n * @param {number[]} horizontalCuts\n * @param {number[]} verticalCuts\n * @return {number}\n */\nvar maxAr
```js\n/**\n * @param {number} h\n * @param {number} w\n * @param {number[]} horizontalCuts\n * @param {number[]} verticalCuts\n * @return {number}\n */\nvar maxArea = function(h, w, horizontalCuts, verticalCuts) {\n    horizontalCuts.push(0, h);\n    verticalCuts.push(0, w);\n    horizontalCuts.sort((a, b) => a - b);\n    verticalCuts.sort((a, b) => a - b);\n    \n    let hMax = 0;\n    let vMax = 0;\n    \n    for (let i = 1; i < verticalCuts.length; i++) {\n        hMax = Math.max(hMax, verticalCuts[i] - verticalCuts[i - 1]);\n    }\n    \n    for (let i = 1; i < horizontalCuts.length; i++) {\n        vMax = Math.max(vMax, horizontalCuts[i] - horizontalCuts[i - 1]);\n    }\n    \n    return (hMax * vMax) % (1e9 + 7);\n};\n```\n
['JavaScript']