var fn = () => {zwróć nową obietnicę (r => r (5))}

var fn = () => {
    return new Promise(r => r(5))
}
Nervous Nightingale