<script>
document.getElementsByClassName("blue").text-color = "darkblue";
</script>
I saw this as a practicing section for JavaScript beginners. I am unable to find the error.
<div>
<span class="blue">This text should be dark blue.</span><br>
</div>
What change must be done to rectify this error?