I am following Jonas Schmedtmann's JS course.
So, after setting up babel, npm, webpack etc. we made a test.js
file which would export its data into an index.js
file (as seen on the screenshots).
However, when I test this - the console.log()
is unchanged and does not include the variables that should? be displayed.
EVEN THOconst x
is declared within the same file! It's not even exported or imported.
PS. I get errors on both import and const saying "x" or "xxx"is declared, but its value is never read. ts(6133). It gives me a quick fix option which deletes both const and import. Very funny.