click and on('click')

click and on('click')

Hello

what's the difference between these 2 lines of code

$("#selector").click(function(){ .....  });   and,

$("#selector").on('click', function(){ ..... });

Thank you