When working with Angular Components, I need to utilize various variables.
export class AppComponent{
value1;
value2;
value3;
value4;
print(position)
{
console.log(this['value'+position]);
}
}
How can I implement this functionality?