window.ENTITIES={'/api/snippets/javascript/js%20list%20all%20variables%20in%20google%20chrome%20console':[{"result":true,"message":null,"batch":{"type":"javascript","name":"js list all variables in google chrome console","items":[{"id":"1y9nq1","type":"javascript","name":"js list all variables in Google Chrome console","content":"window\n\n// Note: in the console in the developer tools, type `window` and press Enter key to see object as expandable tree.","source":"","author":{"id":"JDKE8o","name":"lena","avatar":"1629141373108__JDKE8o__w40px_h40px.jpg","points":714,"role":"BASIC"},"creationTime":1643813377000,"updateTime":1702853411000,"removalTime":null},{"id":"joRwop","type":"javascript","name":"js list all variables in Google Chrome console","content":"for (const variable in window) { \n if (window.hasOwnProperty(variable)) {\n console.log(variable);\n }\n}\n\n// Note: the source code will list all functions and variables available on the window object.","source":"","author":{"id":"YobOE0","name":"user4838","avatar":"1629136639712__YobOE0__w40px_h40px.jpg","points":668,"role":"BASIC"},"creationTime":1643813502000,"updateTime":1702853326000,"removalTime":null}]}}]};