const zero = () => Promise.resolve(0).then(zero);
zero().then(result => console.log('this does not print a zero:', result));
Technically ends because .then run on the next tick, but it permanently blocks the JS event loop (I think).
(It might eat your RAM)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.