What is the difference between location.replace() and location.assign() in JavaScript?
<p>I want to know what is the difference between <code>location.replace()</code> and <code>location.assign()</code>.</p>

<p>I looked carefully but I didn't notice any difference between them!</p>
