noob question here (beginner to JavaScript & jQuery). I am learning code via codecademy etc., and they are teaching to use the following:
$('.projects-button').on('click', function() {
$('.projects').show();
});
Then, while researching something on Stack, I found the following:
$('.projects-button').click(function() {
$('.projects').show();
});
Is there a difference between "on click function," and "click function???"