QP School
Exercise 0002 - Hello World in JavaScript in the browser console - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: JavaScript Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=6)
+--- Thread: Exercise 0002 - Hello World in JavaScript in the browser console (/showthread.php?tid=3360)



Exercise 0002 - Hello World in JavaScript in the browser console - Qomplainerz - 04-10-2022

In order to write content in the browser console we will need the console.log() function.

As usual I will take "Hello, World!" as example.


Code:
<!DOCTYPE HTML>

<html>

<head>
    <title>Hello World</title>
</head>

<body>

    <script>
        console.log("Hello, World!");
    </script>

</body>

</html>