How do I complete the execute function, such that when the Next Image button is clicked, the next image in the images array is shown, and when I get to the end of the array, it should start from the beginning of the array.. so essentially, the Next Image button acts like a way to cycle through the images in the images array. NB: the image at the first index of the array is already shown. So when I click the button, the image at the second index should be shown.. and so on.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<button onclick='execute()'>Next Image</button>
<div>
<img src='https://bocageanimalhospital.com/wp-content/uploads/2020/09/iconfinder_1F431-cat-face_4888130.png' />
</div>
</body>
<script>
const images = [
'https://bocageanimalhospital.com/wp-content/uploads/2020/09/iconfinder_1F431-cat-face_4888130.png',
'https://catdoctorofmonroe.com/wp-content/uploads/2020/09/iconfinder_1F408-cat-B_4888072.png',
'https://aux.iconspalace.com/uploads/cat-clean-icon-256.png'
]
function execute() {
}
</script>
</html>