How to change the text to something else in Javascript?

please do not judge strictly I'm far from Pro

here is the code:

function updateRec() {
$recBtn.text(recognition ? "stop" : "start");
}

how to make the words stop start I could put icons, or at least image rec and stop ?

help please with this piece of code

thank you all, this is an important a big help
July 2nd 19 at 17:34
1 answer
July 2nd 19 at 17:36
Solution
To use in 2016 jQuery non-kosher.

function updateRec() {
 $recBtn.html(recognition ? "<img class="stopIcon">" : "<img class="startIcon">");
}
why? - Teresa commented on July 2nd 19 at 17:39

Find more questions by tags JavaScript