I've function showEmployee(i) which returns me the index of an array object.
Using the index value i need to show the value of that returned index.
I could not figure out how to do it. I tired congole.log(i) which returns undefined
Below is my code. Please help
Employees =[
{'name':'Arun','role':'Developer'},
....
];
showEmployee(i){
console.log(i); // this returns the index value of the array
}
iis the current object in the array ?