index.js
/**
 * Respond with hello worker text
 * @param {Request} request
 */
Respond with hello worker text
@param {Request} request
Respond with hello worker text @param { Request } request
async function handleRequest(request) {
  let v = await getVariants();
  const randomVariant = v[Math.floor(Math.random() * v.length)];
  return fetch(randomVariant);
}
async function handleRequest ( request ) { let v = await getVariants ( ) ; const randomVariant = v [ Math . floor ( Math . random ( ) * v . length ) ] ; return fetch ( randomVariant ) ; }
Respond with hello worker text
 @param {Request} request
Respond with hello worker text @param { Request } request