Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Will the next code compile with TypeScript?
let s = "hello" s = 1;
Yes, we can reassign value of another type to a variable, because we didn't specify the type in declaration
No, we will get an error that type 'number' is not assignable to type 'string'
No, we will get an error that variable has not specified type at declaration
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!