Skip to main content
\n\n

after both scripts

","learningResourceType":"Practice problem","educationalLevel":"hard","about":"HTML","teaches":"async defer parsing internals","url":"https://journeyuncommon.com/quiz/question/ee080e9c-fb2c-47d3-a65e-906b72aa160a","inLanguage":"en","isAccessibleForFree":true,"provider":{"@id":"https://journeyuncommon.com/#organization"},"isPartOf":{"@type":"WebSite","@id":"https://journeyuncommon.com/#website","name":"Journey Uncommon","url":"https://journeyuncommon.com"}}
Journey Uncommon Logo
JourneyUncommon
hardHTMLasync defer parsing internalsSingle-choice MCQ

When does an inline (non-src) <script type="module"> execute relative to document parsing, compared to an inline classic <script>?

<script>console.log('classic');</script> <script type="module">console.log('module');</script> <p>after both scripts</p>