// Task 1
var dairy = ['cheese', 'sour cream', 'milk', 'yogurt', 'ice cream', 'milkshake'];
function logDairy() {
for (food of dairy) {
console.log(food)
}
}
// Task 2
const animal = {
canJump: true
};
const bird = Object.create(animal);
bird.canFly = true;
bird.hasFeathers = true;
function birdCan() {
for (value of Object.keys(bird)) {
console.log(value + ":" + " " + bird[value])
}
}
// Task 3
function animalCan() {
for (props in bird) {
console.log(`${props}: ${bird[props]}`);
}
}
logDairy();
birdCan();
animalCan()