I’m constantly searching for this code snippet, so why not supply it myself:
// $ Works! You can test it with next line if you like
})( jQuery );
Source of this code when I search always seems to be: https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/
That link also contains how to enqueue scripts and css files as well as other handy stuff.