Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptverbatimModuleSyntax / isolatedModulesSingle-choice MCQ

Under `verbatimModuleSyntax: true`, what does the emitted JavaScript for a file that declares `export const enum E { A, B }` look like, and why?

// e.ts compiled with { verbatimModuleSyntax: true, module: "esnext" } export const enum E { A, B }