remarks are in the comment in code snippet.
<html>
<body>
<p id="A100"> </p>
<script>
var dictionary,lower;
function start(){dictionary="house";
lower=dictionary.toString().toLowerCase();
//you need to return something for the function output to be consumed somewhere else
return lower;
}
//you use start output to render innerhtml
// you dont do another document.get because lower is not a dom element its is Js object and we have used start return to make is consumable
// == is comparative = is used as setter we are setting not comparing as code would suggest
document.getElementById("A100").innerHTML=start();
</script>
</body>
</html>
Local scope example as suggested by Mathi;
<html>
<body>
<p id="A100"> </p>
<script>
function start(){
let dictionary, lower;
dictionary="house";
lower=dictionary.toString().toLowerCase();
return lower;
}
document.getElementById("A100").innerHTML=start();
</script>
</body>
</html>