VOOZH about

URL: https://www.coursera.org/learn/api-basics-3-build-a-game-async-js-callbacks-promises

⇱ API Basics 3: Build a Game (Async JS, Callbacks & Promises) | Coursera


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.

Included with

β€’

Learn more

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

4 hours to complete
Flexible schedule
Learn at your own pace

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

4 hours to complete
Flexible schedule
Learn at your own pace

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.

Details to know

Shareable certificate

Add to your LinkedIn profile

Assessments

1 assignment

Taught in English

Build your subject-matter expertise

This course is available as part of
When you enroll in this course, you'll also be asked to select a specific program.
  • 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

Scrimba
14 Coursesβ€’56,599 learners

Explore more from Software Development

Why people choose Coursera for their career

πŸ‘ Image

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
πŸ‘ Image

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
πŸ‘ Image

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
πŸ‘ Image

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

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.

Financial aid available,