Developer
© 2022 Adlet92
I set myself the goal of changing the field of activity from an IT analyst to a Data Analyst or Golang Backend developer specialization. Currently, I am studying at the Alem programming school, better known as the school 42, specializing in Golang Backend developer.
function triangle(str, num){
let res = "";
for (let i = num-1; i >= 0; i--){
res += str.repeat(num-i) + '\n';
}
return res.slice(0, res.length - 1)
}