Answers for "cannot use import statement outside a module from the console.log"

1

cannot use import statement outside a module from the console.log

//method of exporting variables, contants and...
export const greetings = "Hi"; //saved as ex1.js

import {greetings} from "[specify path]/JavaScript Exercises/ex1.js"; //saved as mod.js
Posted by: Guest on July-27-2021

Code answers related to "cannot use import statement outside a module from the console.log"

Code answers related to "Javascript"

Browse Popular Code Answers by Language