How do I load js file?

How do I load js file?

I used following code:

In libraries.yml file :

my_module.admin:
version: VERSION
js:
js/my-module.js: {}
dependencies:
- core/jquery
- core/drupal
- core/drupalSettings
In ...