import / export

Term side of the Card
Topic: Syntax
Unit title: import / export
Categories: Syntax, Keyword
Explanation side of the Card

Explanation: The keywords used in JavaScript for importing and exporting functions, objects or entire modules between files. The `import` keyword is used to bring code from another module into the current module, while `export` is used to make code available to other modules.

Browser compatibility:
  • The chrome browser supports this feature starting from version 61
  • The edge browser supports this feature starting from version 16
  • The firefox browser supports this feature starting from version 60
  • The safari browser supports this feature starting from version 10.1
Availability: