Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

JS doesn't read imported and declared variables into console.log [closed]

$
0
0

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.

enter image description here


Viewing all articles
Browse latest Browse all 97355

Trending Articles