I am currently working on my JavaScript skills and would like to implement a fun project involving 10 colorful circles. While I can easily create these circles using HTML and CSS, I require assistance with the interactive functionality using JavaScript. My goal is for each circle to display the number of times it has been clicked on. For instance, if I click on the blue circle three times, the number 3 should appear in the center of that circle.
<style>
.circle{
border-radius: 50%;
width: 40px;
height: 40px;
padding: 3px;
background: blue;
border: 2px solid black;
text-align: center;
}
</style>
</head>
<body>
<div class="circle">
3
</div>
</body>