hi everybody, the console says syntax error “,” (6:57) but this “,” should be on this code… or is some code incorrectly written?
Ваш код
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
sortButton.addEventListener("click", sortInputArray(srt) => {
console.log(str);
});
// User Editable Region
/* file: styles.css */
Інформація про ваш браузер:
Агент користувача: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Інформація про завдання:
Вивчіть базове алгоритмічне мислення, створивши сортувальник чисел - Step 4
I think that’s fine, thank you. I think you know best what you need. I think that all people know what they need… sorry, I’m getting philosophical again)))
We don’t know what’s the best wording for the instructions, we consider all feedback. The curriculum is always changing because there are always suggestions that allow to make things better than what they are
The proposal is simple: it is impossible to master programming and algorithmic thinking using contradictory expressions. If the task states that the code written is to be tested, then in logical order it is necessary to show how this code is tested, otherwise the person is misled. Thank you for your understanding, with love.)
and in the next steps, I think this will be required of the user, because testing is a big paragraph in programming, there is a whole profession dedicated to this area of programming and software development, and the user may not attach importance to it.
but I leave the last word to the author of the product because I don’t have the whole picture of the idea and if my subjective opinion is not true, please point it out to me, I will be grateful, I also intend to develop))
what issue are you having with that? it asks to add the event listener so you can press the button to test the code you are writing as you go, instead of adding the event listener at the end and not allowing the user to see the code in action