+ 1
[ SOLVED ]Why is this code not working ?
Why am i getting error in this code ?? https://code.sololearn.com/W4mL5VpB0h6O/?ref=app
3 odpowiedzi
+ 5
The import statement works perfectly for a node project..
Run this on your pc, using nodejs, with a package.json file.
This may not run in html webpages in sololearn...
Or, you can try to do it in sololearn itself, create a node project.. Write your code... But sololearn might fail sometimes with import statements..
+ 3
It said something about "import" not allowed outside module. Is this supposedly be saved as a Node code bit rather than Web code bit?
+ 1
I am not sure. But anyway.
add link cdn within head tag of html.