This function uses jQuery to modify the contents of a DOM element. What am I doing wrong?
function updateScore(score) {
console.log("Test score is: " + score);
$("#testScore").innerHTML = 'Current score is:' + score;
}
updateScore(1000);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<p id="testScore">
The log message shows up, but nothing else does. I have a <p> with the id testScore, but it doesn't change when I run the function. Why?