Learn JavaScript | Codecademy

Skip to Content Free CourseLearn JavaScript

Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.

4.48 out of 5 stars32,541 ratingsDiagonal B RegularThis course includes
  • AI assistance for guided coding help
  • Projects to apply new skills
  • Quizzes to test your knowledge
  • A certificate of completion
Start2,422,449 learners enrolledDiagonal B RegularThis course includes
  • AI assistance for guided coding help
  • Projects to apply new skills
  • Quizzes to test your knowledge
  • A certificate of completion
  • Skill level

    Beginner
  • Time to complete

    Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary15 hours
  • Projects

    12
  • Prerequisites

    None

About this course

You interact with JavaScript code all the time — you just might not realize it. It powers dynamic behavior on websites (like this one) and plays an important role in many fields, like front- and back-end engineering, game and mobile development, virtual reality, and more. In this course, you’ll learn JavaScript fundamentals that will be helpful as you dive deeper into more advanced topics.

Skills you'll gain

  • Build core programming concepts

  • Learn object-oriented concepts

  • Read and write JavaScript

Syllabus

11 lessons • 12 projects • 9 quizzesExpand all sections
  • 1

    Welcome to Learn JavaScript

    Learn about what the JavaScript course has in store!

  • 2

    Introduction

    In this course, you will learn about JavaScript data types, built-in methods, and variables.

  • 3

    Conditionals

    Learn how to use if, else if, else, switch, and ternary syntax to control the flow of a program in JavaScript.

  • 4

    Functions

    Learn about JavaScript function syntax, passing data to functions, the return keyword, ES6 arrow functions, and concise body syntax.

  • 5

    Scope

    Learn about global and block level scope in JavaScript.

  • 6

    Arrays

    In this course, you will learn about arrays, a data structure in JavaScript used to store lists of data.

  • 7

    Loops

    In this course, you will learn how to use for and while loops to execute blocks of code multiple times.

  • Certificate of completion available with Plus or Pro

    Earn a certificate of completion and showcase your accomplishment on your resume or LinkedIn.
Show all 10 modulesStart

The platform

Hands-on learning

AI-assisted learningMake progress faster with our AI Learning Assistant, a tool that automatically understands your current course, instructions, and solution code — and gives you instant, personalized feedback.Real-world projectsTake what you're learning into the real world. Choose from guided projects that help you solidify new concepts — or test yourself with independent projects designed to build your portfolio.Job-readiness checkerSee how well your skills and experience meet the requirements for jobs you're interested in. AI generates a personalized report to show you how ready you are for your dream job and where to improve to qualify for a role.Interview simulatorUse AI to identify strengths and get personalized, actionable feedback to improve your interviewing skills. Easily see what's needed to improve your skills — no matter what stage you're at in your career.AssessmentsTest new skills as you learn them so you can better understand and apply new concepts. You'll also see which topics need more review and get practice recommendations to continue to improve.Animated GIF of an AI provided error explanation within Codecademy's learning environmentAn AI-generated hint within the instructions of a Codecademy projectAnimated GIF of Codecademy's Job Readiness Checker tool generating a compatibility report for a senior software engineer roleAnimated GIF of building a phone screen interview using Codecademy's Interview SimulatorA fill-in-the-blank JavaScript question in a Codecademy assessmentExplore features

Projects in this course

  • practice Project

    Kelvin Weather

    In this project, we're going to practice variables and printing to the console in JavaScript so you can hone your skills and feel confident taking them to the real world. Why? You've got to master the basics. Get comfortable with these fundamentals.
  • practice Project

    Dog Years

    In this project, we're going to practice variables and strings in JavaScript so you can hone your skills and feel confident taking them to the real world. Why? These concepts will help you use your data to output information to your users.
  • practice Project

    Magic Eight Ball

    Build a virtual Magic Eight Ball using control flow in JavaScript. You’ll practice building decision-making into your programs and gain confidence in writing more robust JavaScript code.
Diagonal A DenseMeet the creator of the courseMeet the full teamChecker DenseKenny LinSoftware Engineer at CodecademyKenny is the Domain Manager for the Web Development Domain at Codecademy. He contributed to a wide range of courses and paths at Codecademy, including JavaScript, Bootstrap, Handlebars, Phaser.js, Go, Swift, TypeScript, and Lua. Meet the full teamGrid RegularGrid Regular

Earn a certificate of completion

Show your network you've done the work by earning a certificate of completion for each course or path you finish.
  • Show proofReceive a certificate that demonstrates you've completed a course or path.
  • Build a collectionThe more courses and paths you complete, the more certificates you collect.
  • Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.

Learn JavaScript course ratings and reviews

4.48 out of 5 stars32,541 ratings
  1. 5 stars66%
  2. 4 stars23%
  3. 3 stars7%
  4. 2 stars1%
  5. 1 star3%
  • Checker DenseSuper interactive course that spells most of the abstract parts of this language into an easy-to-digest manner. There's a lot of insight in the forum and I thought it was the most conducive to progress, as I found that some of my "classmates" were also having similar questions to mine.Mark P.Verified Learner
  • Checker DenseEach step of the course was clearly explained and the activities naturally deepened my understanding of each concept. I finished it feeling more confident in my knowledge of JavaScript than I have with other courses of similar content.Sarah B.Verified Learner
  • Checker DenseI recently had the opportunity to dive into the JavaScript course offered by Codecademy, and I must say it was an exceptional learning experience. The course stands out as a comprehensive and well-structured program that caters to learners of all levels, from beginners to more advanced developers.Khairul R.Verified Learner

Our learners work at

  • Google Logo
  • Meta Logo
  • Apple Logo
  • EA Logo
  • Amazon Logo
  • IBM Logo
  • Microsoft Logo
  • Reddit Logo
  • Spotify Logo
  • Uber Logo
  • YouTube Logo
  • Instagram Logo

Frequently asked questions about JavaScript

  • What is JavaScript?

    JavaScript is one of the most popular languages in the world. It’s powerful and versatile, and with HTML and CSS, it forms the foundation of modern web development.

  • What does JavaScript do?

  • What kind of jobs can JavaScript get me?

  • Why is JavaScript so popular as a first coding language?

  • Why is JavaScript so popular?

  • What do I need to know before learning JavaScript?

  • Are Java and JavaScript the same?

Join over 50 million learners and start Learn JavaScript today!

Start

Looking for something else?

Related resources

  • Article

    Why JavaScript Is Essential

    Learn what is JavaScript and why it is the most popular programming language. Discover its history, web development role, backend capabilities, and future potential in technology.
  • Article

    Why learn JavaScript foundations?

    Learn more about why you should build a strong foundation in JavaScript when you first learn the language.
  • Article

    What is JavaScript?

    What is JavaScript, and how does it work?

Related courses and paths

  • Free course

    Learn JavaScript: Fundamentals

    Learn how to control the flow of a program and use JavaScript to power dynamic behaviors on websites.
    • Checker DenseBeginner Friendly.4 hours
  • Skill path

    Create a Back-End App with JavaScript

    Learn how to build back-end web APIs using Express.js, Node.js, SQL, and a Node.js-SQLite database library.
    • Checker DenseIncludes 8 Courses
    • Checker DenseWith Certificate
    • Checker DenseBeginner Friendly.30 hours
  • Free course

    Learn JavaScript: Functions and Scope

    Define and reuse logic with functions and scope variables for effective data access.
    • Checker DenseBeginner Friendly.3 hours

Browse more topics

  • Web development5,773,621 learners enrolled
  • Code foundations8,597,473 learners enrolled
  • JavaScript3,233,247 learners enrolled
  • Computer science7,093,845 learners enrolled
  • Data science5,376,445 learners enrolled
  • Python4,351,040 learners enrolled
  • For business4,150,572 learners enrolled
  • Data analytics3,255,780 learners enrolled
  • IT3,198,648 learners enrolled
View full catalogChecker Dense

Unlock additional features with a paid plan

  • Practice Projects

    Guided projects that help you solidify the skills and concepts you're learning.
  • Assessments

    Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.
  • Certificate of Completion

    Earn a document to prove you've completed a course or path that you can share with your network.
See pricing and plans

Tag » Coding Train Javascript