The .replaceAll methods fail with; String.replaceAll is not a function with Quokka, how can that be?
const userName = 'Speedster1000';
const greeting = 'Welcome back user';
const text = 'When user wins the game, then user will earn a reward!';
// .replace(search, replace)
console.log(greeting.replace('user', userName));
// .replaceAll(search, replace)
console.log(text.replaceAll('user', userName));
Solution: You need to have the latest version of Node.js because Quokka runs with Node.js. Since the old version of Node.js does not support .replaceAll.