Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Implement new Concept Exercise: Async/Await

Aperta
#1,502 15 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@derin-art ci sta già lavorando.

Dal 6/10/2024.

  • #1780 di @rockysingh3 — chiusa senza merge

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
content

Direzione di ricerca

Leggi la documentazione collegata di Concept Exercises e Concepts, quindi esamina exercises/concept/bird-watcher e concepts/for-loops come riferimenti strutturali. Definisci il concept e l'esercizio async-await incentrati su async functions, await, promises, error handling e top-level await, con promises ed errors come prerequisiti. Il lavoro è completo quando i contenuti del nuovo concept e del nuovo esercizio sono completi e pronti per la revisione da parte dei maintainer del track JavaScript.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

new exercise :sparkles: x:action/create x:knowledge/intermediate x:module/concept-exercise x:rep/large x:size/large x:status/claimed x:type/content

Goal

The goal here is to create a new concept exercise and a new concept from scratch.

Getting started

Here you can read about what Concept Exercises are and how they are structured:

If you have not done so yet, it is probably also helpful to do a couple of "Learning Exercises" (this is how they are called on the site) yourself. You can also look at the code of an existing concept exercise like bird-watcher (concept for-loops) for reference.

Concepts

The following concept needs to be created. You can use the introduction.md file of the concept also as introduction.md file of the exercise. No need to create different content at this point. Additionally, if you want to save some time it is ok to not have an extensive about.md at this point. It can also be mainly the instruction.md content, maybe with some additions you would like to make.

  • async-await

Learning Objectives

In the concepts the student should learn about the following topics and then practice them in the concept exercise.

  • Async functions
  • Await
  • Relation to promises
  • Error handling with try/catch/finally
  • Top level await (incl. a note that it might not yet be available in all environments)

Out of Scope

  • Repeating details about promises

Prerequisites

The following concepts should be assumed and defined as prerequisites for the new exercise:

  • promises
  • errors

Resources

Here some links that might be helpful as a starting point:

Help

You can choose to do this solo-style, or collaborate with multiple people on this. The suggested approach is to

  1. First accept this issue by saying "I'd like to work on this" (no need to wait for a response, just go with it) and optionally request that someone works with you (and wait for a second person to accept your request).
  2. Use this issue to discuss any questions you have, what should be included in the content and what not and to collect reference material.
  3. Create a PR and set "exercism/javascript" as reviewers. Additionally you can write in #maintaining-javascript that your PR is ready for review. Once you incorporated any critical feedback that the reviewer might give you and the PR is approved, it will be merged by a maintainer.
Lingua principale
JavaScript
Stelle
655
Fork
662
Merge medio
6h 4m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di exercism/javascript

Tutte le issue di exercism/javascript

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.