JSFiddle - React, Tailwind, and code Playground JavaScript if (this.window === window) alert('same'); else alert('different');