Bold numbers in automated text

Hi, I have a site where when the user selects from multiple drop down menus they get a result. How can I make it so that the a and b values below are bolded?

export function text_a_b(a,b){
var Amin = session.getItem(“Amin”);
var Bmax = session.getItem(“Bmax”);
$w(“#resA”).text = “If you enroll by October, you are estimated to pay between $” + a + " and $" + b + " per month";

}

You should use

$w("#resA").html = ....

Have a look here (in the middle) how to chain strings of different styles:
https://jonatandor35.wixsite.com/test/textshadow

Thanks for the quick reply! But that will make the whole line bold. I just want one part of the sentence bold (the "+ a + " and "+ b + " values).

No it won’t.
You should add to the text object 5 strings. 3 of them “normal” and 2 “bold”.

@jonatandor35 Okay thanks!