About clearInterval and setInterval

I am trying to finish the Pomodoro Clock challenge, I stuck with a problem.
here is the link to my project, please check it.

when I click the clock, it begins to timing, then I click the clock again, it stops, but I find the clock cannot stop, and the function “clearInterval(myInterval)” is invalid. I set the return value “myInterval” of “setInterval(myTimer,1000)” as a global variable.

I am confused with the bug.Please give me some guidance, thanks a lot!

yes,you are right!! Thanks a lot!!!