I have read the method signature:
jQuery.getJSON( url, `[data,] [success(data, textStatus, jqXHR)]` )
I am wondering what the part I have highlighted in quotes means?
Why does it say [data,]?
Why does it have two arguments in square brackets?
Shame the jQuery site doesnt tell you how to read the documentation…
The second and third arguments are optional.
The third parameter is a function with the given parameters which are passed to it if provided.