Trying to get the hang of Angular and TypeScript, but I'm stuck on why I can't access my variable after declaring it.
It looks something like this.
export class aComponent implements OnInit {
num : Number;
num = currentUser.Id
Encountering an error that says "Duplicate identifier 'num'".
This snippet is from a TS file within a component.