The getElementById() method
The getElementById()
method returns a reference to the element by its ID:
var pic =document.getElementById("profilePic");
The getElementById()
method returns a reference to the element by its ID:
var pic =document.getElementById("profilePic");