let space = '';
let n = '';
let m = '';
for(let i=1;i<=6;i++){
for(let j=6;j>=i;j--){
space = space + ' - ';
}
for(let z=1;z<=i;z++){
n = n + ` ${z} `
}
for(let k=i-1;k>=1;k--){
m = m + ` ${k} `
}
console.log(space+n+m)
n = '';
space = '';
m = '';
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)