'ios Product Page Optimization stopped
Solution 1:[1]
Product Page Optimization is based on the current released version of your app.
According to this page of Apple, submitting a new app version for review "automatically stops any tests that are in progress".
To restart your test, you must create a new test.
Solution 2:[2]
function annualSalary(name) {
var employee = employees.find((employee) => employee.name === name);
return employee.salary * 12;
}
Solution 3:[3]
basic JSON manipulation / reading in JavaScript is very easy as you can just address the object keys with jsonObject.keyName.
I just use a for loop and iterate over all JSON object in your object array.
In your case the code could look something like this:
var emeployees = [{ name: 'Manuel', salary: 1000, }, { name: 'Flor', salary: 4000, }, { name: 'Maria', salary: 500, }];
function anualSalary(employees, name) {
for (const employee of employees){
if (employee.name = name){
return employee.salary * 12;
}
}
}
console.log(anualSalary(emeployees, "Flor"));
EDIT:
- Updated snippet to make function signature fit given example
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | ace1234 |
| Solution 3 |


