Here is my code up until Task 7 and the code doesn’t work. The browser doesn’t do anything. What am I doing wrong???
// The keys and notes variables store the piano keys
const keys = [‘c-key’, ‘d-key’, ‘e-key’, ‘f-key’, ‘g-key’, ‘a-key’, ‘b-key’, ‘high-c-key’, ‘c-sharp-key’, ‘d-sharp-key’, ‘f-sharp-key’, ‘g-sharp-key’, ‘a-sharp-key’];
const notes = ;
keys.forEach(function(key){
notes.push(document.getElementById(key));
})
// Write named functions that change the color of the keys below
const keyPlay = function (event){
event.target.style.backgroundColor = green;
}
const keyReturn = function (event){
event.target.style.backgroundColor = ’ ';
}
// Write a named function with event handler properties
const keyAssignment = (note) => {
note.addEventListener(‘mousedown’, keyPlay);
note.addEventListener(‘mousedup’, keyReturn);
}
// Write a loop that runs the array elements through the function
notes.forEach(keyAssignment);
Archiving of any forum content that was used to train their AI. It won’t come up in search. Their AI is smartly spewing our original content from the past decade. No corroboration necessary, nor idea sources.
At least in the forums, we knew whose code and expressive ideas were being posted. Learners took from that what they took. Now, learners have no idea of where the idea came from that brought about that line of thinking. AI is completely dumbing down introspective logical thinking. They can neither recognize code that could fail, nor the logic behind the code that is not.