title: How to prevent an object from being accessed JS
body: <p>I have a program in which I wish to prevent anyone from accessing <code>String</code> object or any of its prototypes and I can't seem to find how to do that.</p>
  <p>Tried <code>Object.seal</code>, <code>Object.freeze</code> and they both obviously don't work (since they don't prevent you from accessing properties already present, so feeling a little lost on how to do that.
  Tried looking it up on internet but after half an hour, all I have got is different way to access properties and 3 ways of adding new stuff and locking but 0 ways to make it be inaccessible</p>
  <p>I tried to <code>delete</code> as well but that one was.....</p>