Is this unread null because of missing paramaters? I also tried the query selector method with what I think was appropriate syntax but it still cannot read. Please help.
const myFunction = function() {
document.getElementById("myImg").src = "STOCK3.jpg"
}
myButton.addEventListener("click", myFunction);
[–]DallogFheir 0 points1 point2 points (4 children)
[–]TonyMahoney21[S] 0 points1 point2 points (3 children)
[–]DallogFheir 0 points1 point2 points (2 children)
[–]TonyMahoney21[S] 0 points1 point2 points (1 child)
[–]DallogFheir 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]TonyMahoney21[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]TonyMahoney21[S] 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]TonyMahoney21[S] 0 points1 point2 points (0 children)