Build a "Movie Rating" application.
The user enters a number from 1 to 10. After clicking the button:
for loop to generate the required number of starsfor loop from 1 to the entered number⭐1101 or greater than 10 —
display an error:<p class="error">Please enter a number from 1 to 10</p>
div class="rating"
<div class="rating">
⭐⭐⭐⭐⭐
</div>
📌 Important:
Stars must be generated through the for loop.
Do not change anything in the HTML.