I want to put image src into my code. This is my JavaScript code so far:
<script>
function images(){
var randomizer = Math.floor((Math.random() * 5)
var pictures =["images1.jpg","images2","images3.jpg","images4.png","images5.jpg"]
}
</script>
and this is my HTML code:
<img id = "bubbles" src="images1.jpg" width="20%" alt = "pics">
<img id = "bubbles2" src="images2.jpg" width="20%" alt= "pics">
The problem that I am facing is that I am not able to put the arrayed string into the src.
=