aquí está HTML:
<div class="args-container"> <button type="button" id="nuclear">click to see nuclear</button> <button type="button" id="geothermal">click to see geothermal</button> </div>aquí está javascript:
const args = Array.from(document.querySelector(".args-container").children); args.forEach(e => e.addEventListener("click", myFunc()));Si hago clic en un botón , "myFunc ()" no funciona