JQuery Conventions
Supports: https://www.alexandercowan.com/making-stuff-happen-javascript/
by mastersj19
HTML
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
JavaScript
//This explains the different JQuery conventions in use on W3C vs. Codecademy. The two code samples are equivalent. Comment out one and uncomment the other to see.
/*
//This is what you'll see on the W3C tutorial.
$(document).ready(function(){
//snippetX
$("p").click(function(){
$(this).hide();
});
});
*/
//This is what you'll see on Codecademy.
$(document).ready(() => {
//snippetX
$("p").click(function(){
$(this).hide();
});
});