Coming from Java background and taking toddler steps in Angular 2 with TypeScript, gives scope for so many comparisons. We can declare variables with types name : string
inside a class in Angular 2 / TypeScript. How do i declare multiple variables of same type in single shot ? Is there a way to declare like name, designation, email : string
in single line ?
There is no syntax that would work as just writing the type for each variable individually.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With