Login
📚 The Mojo Manual
Chapters ▾

Chapter 1: Get Started

This page quickly teaches you Mojo's syntax by focusing on code.

For more explanation of the language features, see the Mojo get started tutorial or Mojo language basics.

Adapted from the Mojo Manual, part of the Modular Platform repository (github.com/modular/modular), Copyright (c) Modular Inc., licensed under the Apache License v2.0 with LLVM Exceptions. Changes were made: reformatted as an accessible XYZ web edition with build-verified example outputs. Mojo is a trademark of Modular Inc.; this edition is not affiliated with or endorsed by Modular. License: Apache-2.0 WITH LLVM-exception.