0Pricing
Mojo Academy · Lesson

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.mojo

All lessons in this course

  1. Your First .mojo File
  2. The main Entry Point
  3. Running with mojo run
  4. Exploring in the Mojo REPL
← Back to Mojo Academy