+ 1

[ SOLVED ]Why is this code not working ?

Why am i getting error in this code ?? https://code.sololearn.com/W4mL5VpB0h6O/?ref=app

12th Jan 2021, 6:05 AM
Anurag Saikia
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..
12th Jan 2021, 6:51 AM
Steve Sajeev
Steve Sajeev - avatar
+ 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?
12th Jan 2021, 6:29 AM
Ipang
+ 1
I am not sure. But anyway. add link cdn within head tag of html.
12th Jan 2021, 6:10 AM
Shadoff
Shadoff - avatar