5.1 Hello world program

After delving into the theoretical aspects encompassing Deno—such as its introduction, architecture, threading model, and the Deno-v8 bridge—it's now time to delve deeper into the inner workings of how a program operates within the Deno environment. Our journey begins with the simplest of programs: one that merely prints a message, like the classic "hello world," onto the console.
Why start with something so straightforward? Why not dive into a complex web application right away? The rationale behind opting for such a basic program lies in its ability to help us concentrate on the fundamental elements of Deno. Understanding these foundational aspects is crucial for grasping the essence of Deno as a whole. By dissecting Deno's code, we can unravel the process through which the most elementary program is executed. Once we have a firm grasp of these core concepts, we can gradually progress to tackling more intricate programs.
This chapter encompasses a wealth of information, making it advisable to dedicate ample time to its comprehension. Rushing through this chapter would not be prudent; it demands thoughtful reading. In fact, this chapter, along with the subsequent one, forms the very backbone of this book's existence. To maximize your understanding, we strongly recommend revisiting this chapter twice before proceeding to the subsequent content. This thorough approach will undoubtedly enhance your overall learning experience.

Chapter contents