Are the module pattern and revealing module pattern in Javascript only useful when creating API's?
<p>Is it correct to say that the module pattern and revealing module pattern are most useful in cases like when you are building an API, where you want to have private inaccessible data ?</p>

<p>And for other cases where you don't care about that is more convenient to just use a constructor function ?</p>

<p>Or does the way you can write code inside a module pattern, without so much use of the this keyword, makes the module pattern a better choice even if you don't use private stuff?</p>

<p>Thanks.</p>