So I was studying jQuery and at some point I encounter this code at one of the examples of some random sites.
$("#schedchkall").prop('checked', ($('.betchkbox:checked').length == $('.betchkbox').length) ? true : false);
Now my question is what is the meaning of ? true : false
? What's the use of it?