let persons = [ { name: 'Sergey', surname: 'Honcharenko', age: 28, isMarried: false, }, { name: 'Andrew', surname: 'Klymchuk', middleName: 'Anatoliyovych', haveAJob: true, }, { name: 'Alexander', surname: 'Slobodian', sex: 'male', hasAPet: false, } ]; let str = "
${persons[key][value]} | `; } str += "