Given the following HTML, how would you detect if the user has ticked the "terms" checkbox?
<input type="checkbox" id="terms">
const isTermsChecked = document.getElementById('terms');
Given the following HTML, how would you detect if the user has ticked the "terms" checkbox?
<input type="checkbox" id="terms">
const isTermsChecked = document.getElementById('terms');