Here is the code:
var text = document.getElementById("small").innerText;
document.getElementById("small").innerHTML = text.big();
<h2>Use of method big()</h2>
<button onclick="changeFont()">Change Font</button>
Output will be displayed as:
On clicking the button, you will see the string with changed font:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.