jQuery works instead of $


I'm using $ in my custom js file in a child WordPress design.
But it is said that $ is undefined. But jQuery works fine.
What is the reason? Is it because $ is used in a newer version of jQUery and WP uses the old version 1.12.4. Please correct me.

With best regards