What will be printed to the console in the following code?
const fruits = {
a: 'apple',
b: 'banana',
c: 'cherry'
};
for (let letter in fruits) {
console.log(`The fruit that starts with the letter ${letter} is ${fruits[letter]}`);
}
What will be printed to the console in the following code?
const fruits = {
a: 'apple',
b: 'banana',
c: 'cherry'
};
for (let letter in fruits) {
console.log(`The fruit that starts with the letter ${letter} is ${fruits[letter]}`);
}