How to turn off interval loop : <p>How would I stop this loop? The loop is necessary, I'm just not sure how I stop it when I need to. </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>setInterval(function(){
        console.log("Loop running");
}, 6000);</code></pre>
</div>
</div>
</p>
