5.1 Hello world program

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.

Chapter contents

5.2 Basic hello world5.3 Main program of Deno5.4 Module Specifier5.5 CLI Factory5.6 Permissions5.7 Main Worker5.8 JS Runtime5.9 Run main module5.10 Load module5.11 Recursive module loading5.12 Module graphs5.13 File fetching5.14 Transpile5.15 Register / compile module5.16 Instantiate module5.17 Evaluate module

Last updated