JavaScript solution with visualisation
\nvar isRectangleOverlap = function(rec1, rec2) {\n    const [aX1, aY1, aX2, aY2] = rec1;\n    const [bX1, bY1, bX2, bY2] = rec2;\n    \n    return aX1 < bX2 &&
```\nvar isRectangleOverlap = function(rec1, rec2) {\n    const [aX1, aY1, aX2, aY2] = rec1;\n    const [bX1, bY1, bX2, bY2] = rec2;\n    \n    return aX1 < bX2 && aX2 > bX1 && aY1 < bY2 && aY2 > bY1;\n};\n```\n\n![image](https://assets.leetcode.com/users/images/3981e701-6a3f-454c-8fe4-7139e1c08bdd_1644300691.4717011.png)\n
['JavaScript']