I'm facing an issue in my JavaScript code where I need to change the background color of some text. Currently, I am able to print a coupon on white paper which is working fine.
For example: Here is how the output receipt will look like
***********************
Shopping center
amount: 3450
Foodworld one store
India
************************
Now, I want to change the background color of the text "Foodworld" to red and the text color to black using JavaScript. How can I achieve this functionality?