Javascript match method

task: Your image should have a src attribute that points to this placeholder image:

see the below image . my function should check the img src attribute have the same url or not. how to do that in javscript

<img id="myImage" src=""/>
<div id="isMatch"></div>
function checkImg(checkThisImg) {
 return checkThisImg === myImage.src ? "Matches" : "Does Not Match";
isMatch.innerText = checkImg("");