Why won't this populate the results variable? Promises.all/fetch

This page summarizes the projects mentioned and recommended in the original post on /r/learnjavascript

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • terraform-provider-ichdj

    Terraform + Dad Jokes = 👌. Terraform provider for the "icanhazdadjoke.com" API.

  • javascript async function getJokes(count: number) { let requests = [] for (let i = 0; i < count; i++) { requests.push(fetch("https://icanhazdadjoke.com/", { method: 'GET', headers: { 'Accept': 'application/json', } })) } let responses = await Promise.all(requests) return Promise.all(responses.map(responses => responses.json())) } var results getJokes(3).then(jokes => { console.log(jokes); results=jokes; }) console.log(results)

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Show HN: Visualizing Prometheus node_exporter metrics from smartphone

    1 project | news.ycombinator.com | 16 May 2024
  • Montrez patte blanche : tuez des mutants !

    8 projects | dev.to | 16 May 2024
  • How One Experienced Software Engineer Learns a New Programming Language

    3 projects | dev.to | 16 May 2024
  • LLGo = Go and C and Python

    1 project | news.ycombinator.com | 15 May 2024
  • I built an AI jobboard as an acquisition strategy for my AI SaaS tool

    1 project | news.ycombinator.com | 15 May 2024