1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { ConstructReadTangleUrl } from "https://esm.town/v/willthereader/ConstructReadTangleUrl";
import { fetchComments } from "https://esm.town/v/willthereader/fetchComments";
import { logMessage } from "https://esm.town/v/willthereader/logMessage";
import { testUrlConstructionVal } from "https://esm.town/v/willthereader/testUrlConstructionVal";
export const testFetchCommentsVal = async () => {
const urls = [
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
"https://www.readtangle.com/members/api/comments/?post_id=0%3A6",
]; // Await the resolution of the promise from testUrlConstructionVal
await fetchComments(urls); // Now urls is an array, so it can be passed to fetchComments
};
testFetchCommentsVal();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
December 26, 2023