We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7240e96 commit cb28605Copy full SHA for cb28605
5-network/01-fetch/01-fetch-users/_js.view/solution.js
@@ -1,9 +1,9 @@
1
2
-async function obtenerUsuarios(nombresUsuarios) {
+async function getUsers(names) {
3
let jobs = [];
4
5
- for(let nombre of nombresUsuarios) {
6
- let job = fetch(`https://api.github.com/users/${nombre}`).then(
+ for(let name of names) {
+ let job = fetch(`https://api.github.com/users/${name}`).then(
7
successResponse => {
8
if (successResponse.status != 200) {
9
return null;
@@ -18,7 +18,7 @@ async function obtenerUsuarios(nombresUsuarios) {
18
jobs.push(job);
19
}
20
21
- let resultados = await Promise.all(jobs);
+ let results = await Promise.all(jobs);
22
23
- return resultados;
+ return results;
24
0 commit comments