javascript - Declaring multiple variables in single line + Angular 2 & TypeScript - Stack Overflow

Coming from Java background and taking toddler steps in Angular 2 with TypeScript, gives scope for so m

Coming from Java background and taking toddler steps in Angular 2 with TypeScript, gives scope for so many parisons. 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 ?

Coming from Java background and taking toddler steps in Angular 2 with TypeScript, gives scope for so many parisons. 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 ?

Share Improve this question edited May 29, 2017 at 4:03 BeingSuman asked Jul 27, 2016 at 10:23 BeingSumanBeingSuman 3,3237 gold badges33 silver badges52 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 5

There is no syntax that would work as just writing the type for each variable individually.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742385827a4434038.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信