I just started the API, AJAX and JSON section on FCC and they have suddenly started using a $ infront of code why? what does it do?
The dollar sign is there because some of those functions are from jQuery, which is what is called a “library” - a collection of functions/mini-programs that you tap into by using the $ sign to identify them. You’ll get to like that dollar sign because jQuery saves you a lot of time.
$.ajax() is just a quicker way of writing
One very common use of it with jQuery is to convert DOM objects into jQuery objects, which allows you to use jQuery methods on them. For example, you can write something like this:
document.querySelector('#myInputField').value = 'Hello World!';
This creates a fade out animation on that element with a duration of 1000 milliseconds.