<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji" -->

---
title: Learn Zig from Scratch  - Part 1 | daily.dev
description: A fast, no-fluff introduction to Zig 0.16, part 1 of 3.  ---  - For advertising → codeguild.id@gmail.com  - Learn any programming language you want (40%...
canonical: https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Learn Zig from Scratch  - Part 1 | daily.dev
og:description: A fast, no-fluff introduction to Zig 0.16, part 1 of 3.  ---  - For advertising → codeguild.id@gmail.com  - Learn any programming language you want (40%...
og:url: https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji
og:image: https://api.daily.dev/og/posts/JJZqAH3jI.png
og:image:alt: Learn Zig from Scratch  - Part 1
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Learn Zig from Scratch  - Part 1

**[YouTube](https://daily.dev/sources/youtube)** · 19 min read · 0 upvotes · 0 comments

## Summary

A fast, no-fluff introduction to Zig 0.16, part 1 of 3.

---

- For advertising → codeguild.id@gmail.com

- Learn any programming language you want (40% discount) → https://app.codecrafters.io/join?via=maysara-elshewehy

- Support me on GitHub → https://github.com/sponsors/maysara-elshewehy

- Support me on YouTube → https://www.youtube.com/@Code-Guild/join

---

00:00 - Intro
00:07 - Setup
00:44 - Program
02:20 - Pre Hello World
02:35 - Function
03:27 - Call
04:04 - Constant
04:44 - Import
05:53 - Hello World
07:40 - Variable
08:43 - Numbers (int, float, overflow)
11:09 - Bool and if
11:49 - Null and Optional
13:20 - Switch
14:08 - Array
15:00 - Slice
15:33 - String
16:40 - Repeat operator
17:01 - While
17:35 - For
18:22 - Break and Continue
18:36 - Loops as Expression
19:02 - Multi Iterate
19:13 - To be Continued

---

#zig #ziglang #programming

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=PTwYMErNxus>

---

Tags: [#zig](https://daily.dev/tags/zig)

[View this post on daily.dev](https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Learn Zig from Scratch  - Part 1","url":"https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji"},"datePublished":"2026-10-04T12:26:09.347Z","dateModified":"2026-10-04T21:57:17.647Z","description":"A fast, no-fluff introduction to Zig 0.16, part 1 of 3.\n\n---\n\n- For advertising → codeguild.id@gmail.com\n\n- Learn any programming language you want (40%...","image":"https://i.ytimg.com/vi/PTwYMErNxus/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/PTwYMErNxus/sddefault.jpg","isAccessibleForFree":true,"articleSection":"YouTube","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"YouTube","logo":"https://media.daily.dev/image/upload/s--W5zMumpP--/f_auto/v1725350181/logos/youtube","url":"https://daily.dev/sources/youtube"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/learn-zig-from-scratch---part-1-jjzqah3ji","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"zig","timeRequired":"PT19M","video":{"@type":"VideoObject","name":"Learn Zig from Scratch  - Part 1","description":"A fast, no-fluff introduction to Zig 0.16, part 1 of 3.\n\n---\n\n- For advertising → codeguild.id@gmail.com\n\n- Learn any programming language you want (40%...","thumbnailUrl":"https://i.ytimg.com/vi/PTwYMErNxus/sddefault.jpg","uploadDate":"2026-10-04T12:26:09.347Z","duration":"PT19M","url":"https://api.daily.dev/r/JJZqAH3jI","embedUrl":"https://www.youtube.com/embed/PTwYMErNxus"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"YouTube","item":"https://daily.dev/sources/youtube"},{"@type":"ListItem","position":3,"name":"Learn Zig from Scratch  - Part 1"}]}
```

