I cannot get my name parameter in the Employee class! I do not know why I am getting an error, for example this is not undefined ! this for the current object is correct! I can not specify my name parameter?
class Person { constructor(n, a) { var p = this; pn = n; pa = a; p.total = 0; pamap(x => p.total += parseInt(x));
Actual output
Uncaught ReferenceError: this is not defined
Expected Result
My name is Min Min David and My yearly income is 1333
source share