Home > Q&A > body text
make ${text}bold
I'm trying to apply styles to TEXT inside the backtick operator.
P粉2960800762024-04-01 09:13:46
Insert style in backticks
const content = document.getElementById('content') var text = 'text' content.innerHTML = `make ${text} bold`