Real-world projects from industry experts
With real-world projects and immersive content built in partnership with top-tier companies, you’ll master the tech skills companies want.
Learn the basics of JavaScript, including primary data types, conditionals and loops, and more.
Get access to classroom immediately on enrollment
Learn the basics of JavaScript. Students will learn how to create and use the primary data types in JavaScript and use conditionals and loops to control the flow of their JavaScript code. They’ll write their first JavaScript functions and learn how to use arrays and objects to store collections of data. By the end of the course, learners will use their new JavaScript knowledge to build the core functionality of an eCommerce shopping cart.
No Experience Required.
Explain the history of JavaScript, run JavaScript code in the browser console and use console.log statements in JavaScript to log out values.
Declare variables in JavaScript to represent data. Define and use number, string, and Boolean data types. Use operators to manipulate numbers. Use string properties and methods to manipulate strings. Use strong and loose equality in comparisons.
Add conditional logic to control program flow. Identify truthy and falsy values. Deploy ternary operators for more concise conditional logic and use switch statements to chain multiple else if conditions.
Use for and while loops to reduce code duplication and automate repetitive tasks. Nest loops for more complex automation and use assignment operators to write more concise code.
Create and run JavaScript functions to streamline and organize code. Use return statements to return items when a function runs. Explain how scope works in JavaScript. Use let and const in block scope. Store functions in variables using function expressions and use inline function expressions.
Create and use JavaScript arrays to store a collection of data. Use indexes to reference an array element. Deploy array properties and methods including length, push, pop, and splice to manipulate arrays. Loop through arrays using forEach and map.
Create and use JavaScript objects to store a collection of data as key:value pairs. Use dot notation and bracket notation to access object elements. Add and access methods in JavaScript objects.
In this project, you'll use your JavaScript development skills to build the core functionality of an eCommerce shopping cart for Kirana’s fruit market. You will create a collection of products and then write the JavaScript code to add, remove, and change the quantity of a product in a shopping cart. You'll also write the JavaScript code for the checkout functions: making a purchase and returning change.
With real-world projects and immersive content built in partnership with top-tier companies, you’ll master the tech skills companies want.
On demand help. Receive instant help with your learning directly in the classroom. Stay on track and get unstuck.
Validate your understanding of concepts learned by checking the output and quality of your code in real-time.
Tailor a learning plan that fits your busy life. Learn at your own pace and reach your personal goals on the schedule that works best for you.
We provide services customized for your needs at every step of your learning journey to ensure your success.
project reviewers
projects reviewed
reviewer rating
avg project review turnaround time
James received his degree in Computer Science and Mathematics, then went on to become a Udacity instructor in several programs. His personal mission is clear: to open the doors of opportunity for others by empowering them with excellent educational experiences.
Julia is a Content Developer at Udacity and was previously a middle school math teacher in San Jose, CA. She also dabbled in freelance web development, designing websites for small businesses in the Bay Area.
Learn the basics of JavaScript, including primary data types, conditionals and loops, and more.
On average, successful students take 1 month to complete this program.
No. This Course accepts all applicants regardless of experience and specific background.
No prior experience is required, but it is recommended that students are comfortable with basic computer skills, such as managing files, using third-party online programs, and navigating the Internet through an online browser. You will also need access to a video camera on a computer.
This course is comprised of content and curriculum to support one project. We estimate that students can complete the program in one month.
The project will be reviewed by the Udacity reviewer network and platform. Feedback will be provided and if you do not pass the project, you will be asked to resubmit the project until it passes.
Access to this course runs for the length of time specified in the payment card above. If you do not graduate within that time period, you will continue learning with month to month payments. See the Terms of Use and FAQs for other policies regarding the terms of access to our programs.
Please see the Udacity Program Terms of Use and FAQs for policies on enrollment in our programs.
There are no software and version requirements to complete this course. All coursework and projects can be completed via Student Workspaces in the Udacity online classroom. Udacity’s full technical requirements are listed here.