Question · Vue.js course · Module 15: TypeScript & Nuxt

The lang Attribute in script

What attribute do we add to the <script setup> block to enable TypeScript?

Answer options

  • type="typescript"
  • ts="true"
  • mode="typescript"
  • lang="ts"

You can check the correct answer by solving this task in the CodeWorlds game.