What does this program print after three of five replicas become unreachable?

from CAP theorem
Node 24 beginner 2 min

What does this program print after three of five replicas become unreachable?

JavaScript
const replicas = 5;
const quorum = Math.floor(replicas / 2) + 1;
const reachable = 2;

console.log(reachable >= quorum ? 'commit' : 'reject');
console.log({ reachable, quorum });
Open in playground
Report an error