JSFiddle - React, Tailwind, and code Playground

by Avizura

HTML

<h2 data-name="mdovzhenko"></h2>

JavaScript

(async () => {
  const number = await fetch('https://lr.kodaktor.ru',  { method: 'POST' })
  	.then(res => res.json());
  document.getElementsByTagName('h2')[0].innerHTML = number;
  const data = await fetch('https://kodaktor.ru/sleep', { method: 'POST', body: { n: number } })
  	.then(res=>res.json());
  console.log(data);
})();