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

page5.2 Basic hello worldpage5.3 Main program of Denopage5.4 Module Specifierpage5.5 CLI Factorypage5.6 Permissionspage5.7 Main Workerpage5.8 JS Runtimepage5.9 Run main modulepage5.10 Load modulepage5.11 Recursive module loadingpage5.12 Module graphspage5.13 File fetchingpage5.14 Transpilepage5.15 Register / compile modulepage5.16 Instantiate modulepage5.17 Evaluate module

Last updated