Why import in js not working?

ya i have a same this problem.
Uncaught SyntaxError: Cannot use import statement outside a module index.js:1