6. Make a Dictionary JS fundamentals 80/100

Не разбирам къде греша :( 

 

function solve(arr = []) {
  arr.sort();

  for (let i = 0; i < arr.length; i++) {
    let el = JSON.parse(arr[i]);

    let objName = Object.getOwnPropertyNames(el);
    let values = Object.values(el);
    console.log(`Term: ${objName} => Definition: ${values}`);
  }
}