Your First .mojo File
Create a file and print Hello, world.
A File to Hold Your Code
Mojo programs live in plain text files. Each one ends with the .mojo extension so the toolchain knows how to compile and run it. 📄
Name It Clearly
Pick a short, lowercase name like hello.mojo. A clear file name makes it obvious what the program does when you come back later.
hello.mojoAll lessons in this course
- Your First .mojo File
- The main Entry Point
- Running with mojo run
- Exploring in the Mojo REPL