how to make something bold in javascript code example
Example 1: css text bold
font-weight: bold;
Example 2: make text bold js
<button onclick="myFunction()">Try it</button>
<p >Make text bold <span id="demo">Text Bold</p>
<script>
function myFunction() {
document.getElementById("demo").style.fontWeight = "900";
}
</script>