Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!