5.1 Hello world program
Last updated
Last updated
We have discussed the theoretical aspects of Deno, including its introduction, architecture, threading model, and the Deno-v8 bridge. Now, we will explore how a program works within the Deno environment. We will start with a simple program that prints a message, like "hello world," to the console.
Why start with a simple program? We want to focus on the basic elements of Deno. Understanding these elements is essential for grasping how Deno works. By analyzing Deno's code, we can see how even the simplest program is executed. Once we understand these basics, we can move on to more complex programs. This chapter contains a lot of important information, so take your time to understand it thoroughly. Don't rush through it. This chapter, along with the next one, is the core of this book.
To get the most out of it, we recommend reading this chapter twice before moving on to the next content. This will help you learn more effectively.