Factory & Constructor Functions

What is an advantage of using Factory Functions for creating objects with private state?
function createCounter() {
  let count = 0;
  return {
    increment() { return ++count; },
    decrement() { return --count; },
    getCount() { return count; }
  };
}
Next Question (7/20)