Khan Academy · on Khan Academy

Intro to Computer Programming

4.7(5,100) on Khan Academy·3.1M enrolled
Beginner 15 hours EnglishFREE
Our recommendation
Khan Academy's free introduction to programming, teaching the basics through JavaScript and interactive drawing in the browser. It is playful and beginner-friendly, aimed at younger learners and complete beginners. A gentle first taste of coding rather than a route to a developer job.

Good for: Complete beginners, including younger learners, wanting a gentle first taste of coding.

Less suitable if: You want job-ready development skills, or you already program.

Skills you'll gain

Programming basicsJavaScriptVariables and loopsFunctionsDrawing and animationProblem solving

Is this course right for you?

A good fit if you…

You have never coded
You want a playful start
You are a younger or first-time learner

Consider something else if you…

You want job-ready skills
You already program
You want a specific language for work

Requirements: None.

Realistic time: About 15 hours at your own pace.

About this course

Khan Academy's Intro to Computer Programming uses JavaScript and a visual drawing canvas to teach programming fundamentals — variables, functions, loops, and conditionals — in a way that gives immediate visual feedback, making it especially effective for complete beginners, including younger learners. Rather than abstract console output, students see their code directly produce drawings and simple animations.

What you'll learn

Understand core programming concepts: variables, functions, loops
Write and debug simple JavaScript programs
Use conditionals to control program logic
Build simple visual programs using a drawing canvas

This course includes

15h
On-demand video
Yes
Mobile access
English
Language

What it costs

Completely free, with no paywall and no certificate. Khan Academy is a non-profit.

Comparison · LBS

Compare alternatives for Intro to Computer Programming

Same topic, different options. We surface the trade-offs others hide so you can pick the course that actually fits your time, budget, and goals.
Khan Academy4.7(5,100)
Intro to Computer Programming
Price
Free
Completely free, forever
Duration
15 hrs
Level
Beginner
Certificate
freeCodeCamp4.8(15,000)
JavaScript Algorithms and Data Structures Certification
Price
Free
Completely free, forever
Duration
300 hrs
Level
Intermediate
Certificate
Course Certificate
MIT OpenCourseWare4.8(12,000)
Introduction to Computer Science and Programming in Python (6.0001)
Price
Free
Completely free, openly licensed — no certificate
Duration
35 hrs
Level
Beginner
Certificate
edX
Computer Science for Cybersecurity Professional Certificate
Price
Free
Audit free · $376-$519 cert
Duration
150 hrs
Level
Beginner
Certificate
Professional Certificate
Prices & availability can change — confirm on the provider's site. We're not affiliated with any single provider.

Instructor

KA
Khan Academy
Khan Academy instructor
3.1M+ learners60 courses4.7 instructor rating

Produced by Khan Academy, a nonprofit educational organization whose computer programming curriculum has introduced millions of beginners, including school-age students, to coding fundamentals.

About this provider

KA
Khan Academy
Non-profit free education platform. World-class education for anyone, anywhere.
Visit Khan Academy

Frequently asked questions

Yes, entirely. Khan Academy is a non-profit.
No. It is about learning the basics rather than a credential.
Yes, very — it is gentle and playful, and works well for younger learners and first-timers.
JavaScript, with interactive drawing in the browser, which makes the basics visual and approachable.
Once the basics click, move to a fuller course like CS50 or Python for Everybody for job-relevant skills.
Free
to audit
Enroll now