Search

Results include substring matches and semantically similar vals. Learn more
thekingjf avatar
untitled_jadeSwallow
@thekingjf
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
sadfasdfasf avatar
untitled_aquaRattlesnake
@sadfasdfasf
An interactive, runnable TypeScript val by sadfasdfasf
HTTP (deprecated)
export let untitled_aquaRattlesnake = async (request: Request): Promise<Response> => {
return Response.json({ ok: true });
dan avatar
untitled5577024
@dan
An interactive, runnable TypeScript val by dan
Script
export let untitled5577024 = "Hello"+" "+"World"
stevekrouse avatar
untitled_B7XzWEHM
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fetch } from "https://esm.town/v/std/fetch";
export const untitled_B7XzWEHM = (
await fetch(
"https://api.val.town/v1/run/paulsun.parkingSpots" +
`?args=${JSON.stringify([lat, lng, radius])}`
).json();
bli27 avatar
untitled_tomatoHarrier
@bli27
An interactive, runnable TypeScript val by bli27
Cron
function x() {
console.log("Welcome to CS1200!");
console.log("Hello there!");
x();
console.log(x() + " Hello!");
stevekrouse avatar
untitled_roseGuanaco
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
HTTP (deprecated)
import { html } from "https://esm.town/v/stevekrouse/html";
export default async function(req: Request): Promise<Response> {
// return new Response("<h1>Hello FRC!</h1>", { headers: {
// "Content-Type": "text/html"
return html("<h1>Hello FRC 2!</h1>");
zbeastly1 avatar
untitled2540845
@zbeastly1
An interactive, runnable TypeScript val by zbeastly1
Script
export let untitled2540845 = async function() {
return "hello val town, what am I to do?"
zemariagp avatar
untitled_ivoryPiranha
@zemariagp
An interactive, runnable TypeScript val by zemariagp
Script
export default function nanoErgun(req, res) {
res.send("hi im nano ergun")
buturliay avatar
untitled_azureYak
@buturliay
// Fetches a random joke.
Cron
// Fetches a random joke.
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
odnm1 avatar
untitled_blueHaddock
@odnm1
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
aounw avatar
untitled_lavenderWildfowl
@aounw
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
khushalneu avatar
untitled_coralBug
@khushalneu
// Fetches a random joke.
Script
// Fetches a random joke.
function fetchRandomJoke() {
const SAMPLE_JOKE = {
"setup": "What do you call a group of disorganized cats?",
"punchline": "A cat-tastrophe.",
return SAMPLE_JOKE;
const randomJoke = fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
andreterron avatar
untitled2939947
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
export let untitled2939947 = (() => {
x = 1
y = 2
return x + y
stevekrouse avatar
untitled_violetAngelfish
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fib2 } from "https://esm.town/v/stevekrouse/fib2";
export let untitled_violetAngelfish = fib2(10);
gbyang avatar
untitled3429908
@gbyang
An interactive, runnable TypeScript val by gbyang
Script
export let untitled3429908 = export.name = () => {
return "gbyang";