const person = {fname:"John", lname:"Doe", age:25};
let text = "";
for (let x in person) {
text += person[x];
}
const shots = [
{id: 1, salary:100,name:'Win Win Maw',position:'junior'},
{id: 2, salary:130,name:'Mg Mg',position:'junior'},
{id: 3, salary:200,name:'KO KO',position:'senior'},
{id: 4, salary:90,name:'Hla Hla',position:'intern'},
{id: 5, salary:250,name:'Ni Lar',position:'senior'},
];
//increment Salary by percentage
let salaries = shots.map((e)=>{
return e.salary
})
let percent = 5 ;
salaries.forEach(increaseSalary => {
increaseSalary += (increaseSalary * percent) / 100;
console.log(increaseSalary);
});