Answer:
<!DOCTYPE html>
<html>
<body>
<h2>My Webpage</h2>
<script>
console.log("hello");
</script>
</body>
</html>
Explanation:
The above written is the HTML code which contains a script tag in which javascript code is written to print hello on the javascript developer console.The script element contains the statement console.log("hello"); which is used to print the argument provided in the console.log on the console of the javascript.
To see hello on the console you have open javascript console in the browser.Otherwise it will not be visible to you.