check if modal hide jquery

JavaScript
alert($('#registration-exams-modal').hasClass('show'));
Source

Also in JavaScript: