text-transform in javascript code example
Example: text transform javascript
<!DOCTYPE html>
<html>
<body>
<p id="demo">This is an example paragraph.</p>
<button type="button" onclick="myFunction()">Transform text</button>
<script>
function myFunction() {
document.getElementById("demo").style.textTransform = "capitalize";
}
</script>
</body>
</html>