in regards to: Checking if jquery is loaded using Javascript
alert(window.$?1:0)
is suggested in a comment on the original question
- What is the interpretation of everything in this short line of code (what does it actually do?)
I believed that this would show alert "1" when jquery is loaded, but it actually shows alert "1" in a basic HTML page generated by d-o-c-Tab in vscode.
My initial belief was due to $ as a synonym for jquery in some cases however in most cases when jquery is not used others it seems to be a synonym for document.getElementByID
I do not have the reputation to comment on the original question yet.