JSFiddle - React, Tailwind, and code Playground

by Csaba Hellinger

JavaScript

const service = async () => await Promise.resolve(123);



const func = async () => {
	const res1 = await service();
    
    service().then(res2 => console.log(res2));
	
	console.log(res1);
}


func();