I know exactly where you are coming from, so let me save you the hassle
npm install -g create-react-app
create-react-app my-app
cd my-app/
npm start
type unknown.variable in various files and see how they handle it - there should be a (compile time) stack trace that points you exactly to the right file and line.That alone changes everything about JS.