Question: Is this valid TypeScript code? If not, why not? Let a: number =10; let b : number =12; let c : number =a+b; let b

Is this valid TypeScript code? If not, why not? Let a: number =10; let b : number =12; let c : number =a+b; let b : string: "Hallo! a+b is equal to "+c; Yes it is valid No, because we can't use a plus sign with a number and a string No, because we can't declare the variable b multiple times No, because the variable b is a number and cannot be changed to a string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
