API Basics 3: Build a Game (Async JS, Callbacks & Promises)
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
API Basics 3: Build a Game (Async JS, Callbacks & Promises)
This course is part of multiple programs.
Instructor: Bob Ziroll
Included with
Learn more
Recommended experience
Recommended experience
What you'll learn
Handle API data using promises and async/await.
Create custom JavaScript functions to process arrays efficiently.
Build a card game using asynchronous JavaScript.
Skills you'll gain
Tools you'll learn
Details to know
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There is 1 module in this course
This course introduces you to the fundamentals of asynchronous JavaScript through hands-on challenges and an engaging project.
You will start by learning the basics of callback functions and progress towards understanding promises, method chaining, and the power of async/await. Along the way, you'll apply these concepts in practical coding challenges, such as building a fully functional "War" card game, complete with features such as scoring, card drawing, and a final winner display. The course also explores custom JavaScript functions, the fetch API, and real-world scenarios involving asynchronous code. By the end, you'll have a strong foundation in asynchronous programming, ready to tackle more advanced JavaScript projects.
This course provides a comprehensive introduction to asynchronous JavaScript, focusing on key concepts such as callbacks, promises, and async/await, while guiding learners through building hands-on projects like a "War" card game to apply their skills in a real-world scenario.
What's included
1 assignment30 plugins
1 assignmentβ’Total 30 minutes
- API Basics 3: Async JavaScript (Callbacks & Promises) Assignmentβ’30 minutes
30 pluginsβ’Total 198 minutes
- Welcome to interactive lessons!β’1 minute
- Async JS Intro & War Projectβ’7 minutes
- Callbacks Setup Challengeβ’2 minutes
- Callback functions introβ’4 minutes
- Separate event listener callbackβ’3 minutes
- Callbacks - revisiting setTimeoutβ’4 minutes
- Callbacks - revisiting array.filterβ’7 minutes
- Callbacks - make own filterArray functionβ’60 minutes
- Callbacks - put our custom filterArray function to useβ’4 minutes
- Thought experiment: what if `fetch` used callbacks?β’2 minutes
- Promisesβ’5 minutes
- Context: method chainingβ’7 minutes
- Promises - .then() chainingβ’3 minutes
- Promises - .then()β’2 minutes
- Promises - passing basic values in the chainβ’5 minutes
- War - save deckId for later useβ’2 minutes
- War - draw 2 cards from our deckβ’6 minutes
- War - Display our card imagesβ’4 minutes
- War - Styling part 1β’8 minutes
- War - Styling part 2β’7 minutes
- War - Refactor card image placementβ’6 minutes
- War - Determine the winning card part 1β’9 minutes
- War - Determine winning card part 2β’6 minutes
- War - display remaining cards when drawingβ’7 minutes
- War - Display remaining cards on new deckβ’2 minutes
- War - Disable the draw button when we get to 0 cards remainingβ’4 minutes
- War - Keep scoreβ’5 minutes
- War - Display the final winnerβ’5 minutes
- A quick look at Async/Awaitβ’7 minutes
- Section Recapβ’4 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
- Status: Free Trial
- Status: Free Trial
- Status: Free Trial
- Status: Free TrialS
Scrimba
Course
Why people choose Coursera for their career
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you canβt afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, youβll find a link to apply on the description page.
More questions
Financial aid available,
