I wrote the below code but as expected it should give value as 4 but it is giving undefined. I am not able to understand why?
function outputInteger (a) {
console.log(this.a);
}
outputInteger(4);
expected result : 4 given result : undefined
Thanks in advance.