Employee and company

Report a typo

In the code below you have a function named employeeAndCompany that gets an array with two objects inside.
Your task is to interact with the keys and values of these two objects and print out the following statement: Employee ... works for ...

Replace the dots with the corresponding variables.

Sample Input 1:

[{"name":"Bruce Reese","email":"[email protected]","company":"Velit Pellentesque Institute"},{"name":"Clarke Eaton","email":"[email protected]","company":"Duis Ltd"}]

Sample Output 1:

Employee Bruce Reese works for Velit Pellentesque Institute
Employee Clarke Eaton works for Duis Ltd
Write a program in JavaScript
function employeeAndCompany(employees) {

}
___

Create a free account to access the full topic