Keep Javascript Updated

Hi, is there a way to make sure the .js file referred to in the .hbs file is updated on the client’s side?

Something like with the assets where there’s a version number at the end
(example: ?v=1618196069568)

I am not familiar with Handlebars so I’m not sure if there is already a way to do this automatically

I don’t know about handlebars but generally you can set the URL to '/file.js?' + Date.now() and that should load it with Javascript.