let sum = 1 ;
for(**let n =2 ; n <= 4 ; n = n+1** ) {
sum = sum + n ; }
console.log(sum); //10
let sum = 1 ;
let n = 2;
while(n <= 4) {
sum = sum + n ;
n = n +1; }
console.log(sum); //10
function gugudan() {
for(let n = 2 ; n <= 9; n = n+1 ) {
for(let m = 1 ; m <=9 ; m = m+ 1) {
console.log(n*m) //템플릿 리터럴 : (`${n} * ${m} = ${n * m})
}
}
}
function gugudan()