I wrote this code for a pattern to log into the console. it works just fine with & and * symbols but when I want to replace & with ๐ and replace * with ๐ , the code no longer works properly. what should I do?
function pattern(n) {
for (let i = 5; i > 0; i--) {
console.log("&".repeat(i).padStart(n, "*"));
}
}
pattern(5);