Live server issue with Javascript

Hi, I’m writing code for a website. I’m using JavaScript and event listeners to inject code into a html div for a bit more dynamic website. However, when I host the code via Live Server extension, i see in the Dev Tools in the sources tab, that my JS is old, before many updates were applied to it. I wanted to ask why is this the case? Ive cleared Chrome cache and disabled cache while in dev tools. no improvement.