Poll: Was this article helpful for you?
You do not have permission to vote in this poll.
Yes
100.00%
1 100.00%
No
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exercise 0002 - Hello World in JavaScript in the browser console
#1
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>
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Exercise 0003 - Variables Qomplainerz 0 841 04-10-2022, 09:42 AM
Last Post: Qomplainerz
  Exercise 0001 - Hello World in JavaScript within a HTML document Qomplainerz 0 912 04-10-2022, 07:43 AM
Last Post: Qomplainerz

Forum Jump:


Users browsing this thread: 2 Guest(s)