Cannot set property InnerHTML of null [duplicate]

You are almost certainly running your code before the DOM is constructed. Try running your code in a window.onload handler function (but see note below): Another popular cross-browser solution is to put your <script> block just before the closing </body> tag. This could be the best solution for you, depending on your needs: Note that … Read more

Babel 6 regeneratorRuntime is not defined

babel-polyfill (deprecated as of Babel 7.4) is required. You must also install it in order to get async/await working. package.json .babelrc .js with async/await (sample code) In the startup file If you are using webpack you need to put it as the first value of your entry array in your webpack configuration file (usually webpack.config.js), … Read more

What does [object Object] mean? (JavaScript)

It means you are alerting an instance of an object. When alerting the object, toString() is called on the object, and the default implementation returns [object Object]. If you want to inspect the object, you should either console.log it, JSON.stringify() it, or enumerate over it’s properties and inspect them individually using for in.