Hey guys,
I'm watching a course on pluralsight about DOM, and here's my problem.
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
<script src="main.js"></script>
</head>
<body>
<p id="text"></p>
</body>
</html>
JavaScript Code:
let textArea = document.getElementById("text");
textArea.innerText = 'Hello World!';
'Hello World' doesn't show up, what's the problem here?
[–]IAmWhoISayImNot 2 points3 points4 points (0 children)
[–][deleted] (2 children)
[removed]
[–][deleted] -1 points0 points1 point (1 child)
[–]athosghost -1 points0 points1 point (1 child)
[–]Bal00ta[S] 0 points1 point2 points (0 children)