title: JS: How do create prototypes when creating factory functions rather than classes?
body: <p>If I am creating a factory function, how would I create a prototype to avoid each instance of the new object inheriting each property?  </p>
  
  <pre><code>    function Person(name) {
          function indentify() {
             return "I am " + name
          }
  
          return Object.freeze({
              name,
              indentify
  
          })
  
      }
  </code></pre>
  
  <p>If I want to create a Person object without having all of them contain identify, can I do this with factory functions or do I have to use the Class syntax?</p>