Learn JavaScript
发布时间:2026-09-16 | 浏览:1
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
AI assistance for guided coding help
Projects to apply new skills
Quizzes to test your knowledge
A certificate of completion
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 vary 15 hours
Time to complete
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
Build core programming concepts
Learn object-oriented concepts
Learn object-oriented concepts
Read and write JavaScript
Read and write JavaScript
1 Welcome to Learn JavaScript Learn about what the JavaScript course has in store!
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.
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.
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.
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.
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.
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.
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.
Certificate of completion available with Plus or Pro
Hands-on learning
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.
Magic Eight Ball
Earn a certificate of completion
Show proof Receive a certificate that demonstrates you've completed a course or path.
Build a collection The more courses and paths you complete, the more certificates you collect.
Share with your network Easily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn JavaScript course ratings and reviews
Super 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
Each 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
I 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
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 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 does JavaScript do?
What kind of jobs can JavaScript get me?
What kind of jobs can JavaScript get me?
Why is JavaScript so popular as a first coding language?
Why is JavaScript so popular as a first coding language?
Why is JavaScript so popular?
Why is JavaScript so popular?
What do I need to know before learning JavaScript?
What do I need to know before learning JavaScript?
Are Java and JavaScript the same?
Are Java and JavaScript the same?
Join over 50 million learners and start Learn JavaScript today!
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.
Why JavaScript Is Essential
Article Why learn JavaScript foundations? Learn more about why you should build a strong foundation in JavaScript when you first learn the language.
Why learn JavaScript foundations?
Article What is JavaScript? What is JavaScript, and how does it work?
What is JavaScript?
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. Beginner Friendly. Beginner Friendly 4 hours 4 hours
Learn JavaScript: Fundamentals
Beginner Friendly. Beginner Friendly 4 hours 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. Includes 8 Courses Includes 8 Courses With Certificate With Certificate Beginner Friendly. Beginner Friendly 30 hours 30 hours
Create a Back-End App with JavaScript
Includes 8 Courses Includes 8 Courses
With Certificate With Certificate
Beginner Friendly. Beginner Friendly 30 hours 30 hours
Free course Learn JavaScript: Functions and Scope Define and reuse logic with functions and scope variables for effective data access. Beginner Friendly. Beginner Friendly 3 hours 3 hours
Learn JavaScript: Functions and Scope
Beginner Friendly. Beginner Friendly 3 hours 3 hours
Browse more topics
Web development 5,975,211 learners enrolled
Code foundations 8,898,195 learners enrolled
JavaScript 3,325,274 learners enrolled
Computer science 7,408,870 learners enrolled
Data science 5,622,185 learners enrolled
Python 4,567,585 learners enrolled
For business 4,343,945 learners enrolled
Data analytics 3,472,283 learners enrolled
IT 3,400,540 learners enrolled
Unlock additional features with a paid plan
Practice Projects Guided projects that help you solidify the skills and concepts you're learning.
Practice Projects
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.
Certificate of Completion