There are two possible reasons for using parameters:
First, the script does not actually exist as a static file but is dynamically generated on the server side, so a version number is appended to distinguish it. That is, the code above is equivalent to
However, the browser will treat it as a specific version of that file!
Second, the client browser caches these CSS or JS files. Therefore, each time you upgrade the JS or CSS file, changing the version number will force the client browser to re-download the new JS or CSS file, serving the purpose of busting the cache. You may have noticed that sometimes after modifying styles or scripts, refreshing the page shows no change; this is because the client has cached the CSS or JS file. Hence, adding parameters is definitely beneficial!
The second scenario is the most common, though both can coexist simultaneously.