$.ajax is not a function – JQuery Error

JQuery throws the error $.ajax is not a function, when you are using slim version and not full version.

Here is the link to slim version of jQuery which excludes ajax and effects modules –

https://code.jquery.com/jquery-3.6.0.slim.min.js

Here is the link to full version –

https://code.jquery.com/jquery-3.6.0.min.js