Week1/exercise/w1/index.js
// 2e: to change the image: assign the imageInputValue to the image src
to change the image: assign the imageInputValue to the image src
to change the image : assign the imageInputValue to the image src
function changeImage() {
    console.log("test2");
    const imageToChange = document.querySelector("img");
    const imageInputValue = document.querySelector("#imageInput").value;
    imageToChange.src = imageInputValue;
}
function changeImage ( ) { console . log ( "test2" ) ; const imageToChange = document . querySelector ( "img" ) ; const imageInputValue = document . querySelector ( "#imageInput" ) . value ; imageToChange . src = imageInputValue ; }
2e: to change the image: assign the imageInputValue to the image src
2e : to change the image : assign the imageInputValue to the image src