<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>HTML InDoc Java Practice</title>
</head>
<body>
<!DOCTYPE html>
<html>
<body>
<p>Convert string to UPPERCASE : And then to lowercase</p>
<button onclick="myFunction()">Uppercase</button>
<p id="demo">Hello World!</p>
<button onclick="myFunction2()">Lowercase</button>
</body>
</html>
<script src="js/index.js"></script>
</body>
</html>
/*Downloaded from https://www.codeseek.co/19Sballard/html-indoc-java-practice-xXqxaw */
function myFunction2() {
var text = document.getElementById("demo").innerHTML;
document.getElementById("demo").innerHTML = text.toLowerCase();
}
function myFunction() {
var text = document.getElementById("demo").innerHTML;
document.getElementById("demo").innerHTML = text.toUpperCase();
}
fumction myFunction1() {
var text =
document.getElementById("demo").innerHTML;
document.getElementById("demo").innerHTML = text.to
}