Não sei onde errei em relação a isso
HTML
<body>
<main id="container">
<div class="container__title">
<img src="./assets/images/icon-star.svg" alt="">
<h1>FAQs</h1>
</div>
<section class="container__informacoes">
<div class="container__informacoes__ask">
<h3>What is help me?</h3>
<img class="icon-minmax icon__one" src="./assets/images/icon-minus.svg" alt="">
</div>
<p class="container__informacoes__info">Fis simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled </p>
</section>
<section class="container__informacoes">
<div class="container__informacoes__ask">
<h3>is simply dummy </h3>
<img class="icon-minmax icon__two" src="./assets/images/icon-minus.svg" alt="">
</div>
<p class="container__informacoes__info">is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled .</p>
</section>
<section class="container__informacoes">
<div class="container__informacoes__ask">
<h3>isimply dummy text </h3>
<img class="icon-minmax icon__three" src="./assets/images/icon-minus.svg" alt="">
</div>
<p class="container__informacoes__info">is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled </p>
</section>
<section class="container__informacoes">
<div class="container__informacoes__ask">
<h3>How can I get help?</h3>
<img class="icon-minmax icon__four" src="./assets/images/icon-minus.svg" alt="">
</div>
<p class="container__informacoes__info">
is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled
</p>
</section>
</main>
<script src="./script.js"></script>
</body>
JS
const icon = document.querySelectorAll('.icon-minmax');
for(let i = 0; i < icon.length; i++) {
const iconElement = icon[i];
const iconElementClass = iconElement.classList[1];
const classElement = `info__${iconElementClass}`;
icon.addEventListener('click', () => {
classElement.setAttribute('src','./assets/images/icon-minus.svg');
});
}