Javascript 1 Solution
Solution\n\n\nvar areaOfMaxDiagonal = function(dimensions) {\n    let maxArea = 0;\n    let diagonalMax = 0;\n    \n    for(let i = 0; i < dimensions.length; i+
* ***Solution***\n\n```\nvar areaOfMaxDiagonal = function(dimensions) {\n    let maxArea = 0;\n    let diagonalMax = 0;\n    \n    for(let i = 0; i < dimensions.length; i++) {\n        let diagonal = Math.sqrt(dimensions[i][0] ** 2 + dimensions[i][1] ** 2);\n        if(diagonal > diagonalMax) {\n            diagonalMax = diagonal;\n            maxArea = dimensions[i][0] * dimensions[i][1];\n        }\n        if(diagonal === diagonalMax) {\n            if(maxArea < (dimensions[i][0] * dimensions[i][1])) {\n                maxArea = dimensions[i][0] * dimensions[i][1];\n            }\n        }\n    }\n    return maxArea;\n};\n```
['JavaScript']