0
what is 'this keyword representing in the following code'?
function changeColor() { const color = document.getElementById("colorPicker").value; this.style.background = color; }
3 Respuestas
0
this keyword refers to the object (i.e div element ,etc) you are trying to change.
0
thank you so much Jay W!
0
You're welcome.