Two ways to import and export code in JavaScript

Поделиться
HTML-код
  • Опубликовано: 28 окт 2024

Комментарии • 3

  • @abdiwelinoor4270
    @abdiwelinoor4270 7 месяцев назад

    Thanks for sharing an informative note

  • @PatrickJohanneson
    @PatrickJohanneson 7 месяцев назад

    When I tried to import './strings', my browsers (Firefox and Chrome) both threw an error: "Uncaught SyntaxError: import declarations may only appear at the top level of a module". Any insight into what I'm doing wrong is appreciated.

    • @AuroobaMakes
      @AuroobaMakes  7 месяцев назад

      That means you weren't importing correctly but I can get more specific if you share more. Mind sharing a screenshot or a code gist through github for me to look at?