The Object entries() static method returns an array of key/value pairs of an object's enumerable properties.

    
    const company = {
        name: "Microsoft",
        industry: "tech",
        ceo: "Satya Nadella",
        revenue: 194
    };

    for (const [key, value] of Object.entries(company)) {
      console.log(`${key}: ${value}`);
    }
    // "name: Microsoft"
    // "industry: tech"
    // "ceo: Satya Nadella"
    // "revenue: 194"

    const companyObjectEntries = Object.entries(company);

    console.log(companyObjectEntries);
    // [["name", "Microsoft"], ["industry", "tech"], ["ceo", "Satya Nadella"], ["revenue", 194]]