Put in order · Angular course · Module 1: Introduction to Angular

Declaring a variable with a type

Arrange in one line the correct declaration of a variable with a string type:

Items to put in order

  • = 'Musashi';
  • const
  • name:
  • string
Show the answer

Correct order:

  1. const
  2. name:
  3. string
  4. = 'Musashi';