// Downward Triangle Star Pattern in JavaScript let numberDown = 5; let stringDown = ''; for (let i=1; i<=numberDown; i++){ for(let j=i; j<=numberDown; j++){ stringDown += '*'; } stringDown += ' '; } console.log(stringDown);