LLD - Design — Food Delivery System
Which of the following is the correct way to represent a notification service that sends messages to all parties in pseudocode?
function notifyAll(parties, message) {
for (let i = 0; i < parties.length; i++) {
parties[i].send(message);
}
}