What will be the output of the following code?
const checkbox = document.getElementById('myCheckbox');
checkbox.addEventListener('change', event => {
console.log(event.target.checked);
});
What will be the output of the following code?
const checkbox = document.getElementById('myCheckbox');
checkbox.addEventListener('change', event => {
console.log(event.target.checked);
});