In this example, we have an array named courses with the course value Angular, Jquery and Bootstrap. The default course is Angular.
When you select any course from the select list the selected course is display below it and with the course the count is display that how many times you change the course or we can say that how many times you change the value of select list.