added a variable declaration

This commit is contained in:
2025-09-04 12:08:50 +05:30
parent 3fe7109585
commit cf94f0c6a7

View File

@ -9,6 +9,7 @@ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
}); });
// Add hover effect to buttons // Add hover effect to buttons
const a = [1, 2, 3];
const buttons = document.querySelectorAll('.btn'); const buttons = document.querySelectorAll('.btn');
buttons.forEach(button => { buttons.forEach(button => {
button.addEventListener('mouseenter', function() { button.addEventListener('mouseenter', function() {