Back to Functions
Flash Card Q & A
What's wrong with this script?:
function flipCard(button) {
let p = document.getElementById('card1');
button.textContent = 'Success1!';
}
function flipCard(button) {
let p = document.getElementById('card2');
button.textContent = 'Success2!';
}
A variable declared OUTSIDE of a function is considered a(n) _____.
let and const are alternatives to _____.