3

Was going through the MDN docs and found this page (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) about importing in javascript?

Very confused about the following lines, any help would be appreciated.

import { export1 , export2 as alias2 , [...] } from "module-name";

import defaultExport, { export1 [ , [...] ] } from "module-name";

JamesGill
  • 183
  • 11
  • 1
    `[]` in documentations typically means that that argument / paramater is optional - In this case, I would image it just means that you can keep repeating the `export2 as alias2` section – Shiny Nov 18 '19 at 15:05
  • 1
    They indicate you can have unlimited list of parameters of given type. – user11153 Nov 18 '19 at 15:06

0 Answers0