Why typescript allows class field name in number
1: number = 1;
2: number = 2;
As per this discussion Why can't variable names start with numbers? We can't create a class field name starting with number(even JavaScript
also does not allow, if we define a variable name is starting with number). But in typescript we can create a class field name starting with number(whatever). Why? and it's a bug in typescript
?.