JEST Sprawdź, czy przycisk jest wyłączony

const buttonState = document.getElementById("btn").disabled

// true means it is disabled
John Appleseed