Put in order · JavaScript and TypeScript course · Module 6: TypeScript Basics

Type Annotation Syntax

Arrange the elements of a typed variable declaration in TypeScript:

Items to put in order

  • string
  • = 'Rex'
  • let
  • :
  • name

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