What does this program print?

from Objects and prototypes
Node 24 beginner 2 min

What does this program print?

JavaScript
const defaults = { currency: 'EUR' };
const order = Object.create(defaults);
order.currency = 'USD';
delete order.currency;

console.log(Object.hasOwn(order, 'currency'));
console.log('currency' in order);
console.log(order.currency);
Open in playground
Report an error