DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
ES2022 - Top-level await modules
const messages = await import(`./messages-${language}.mjs`);
Source by dev.to #
PREVIOUS
NEXT
Tagged:
#await
#modules
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit