Making Javascript Function inaccessible from console
<p>I am working on a <strong>javascript</strong> file with <strong>javascript</strong> <code>functions</code> that are not inside a closure. <br/>Obviously the function is callable by the console.</p>

<p>I know that adding a closure is best practice. But while tinkering i found that if I add in my file</p>

<pre><code>window.myFunction = {} 
</code></pre>

<p>the function becomes unavailable through the console.
Is this safe ?</p>