let str ='Radagast the Brown'
let a = str.split(' '); //공백 있는 문자열
--> ['Radagast', 'the', 'Brown']
let str ='radagast';
for(let i=0; i<str.length; i++){
a.push(str[i]);
}
--> ['R', 'a', 'd', 'a', 'g', 'a', 's', 't']
let a = 0
for(let n =0 ; n < arr.length+1; n++){
arr[n]; // 1
2
3
4
5
6
if(arr[n] < arr[n+1]){
a = arr[n+1];
//continue;
}
}
let max = arr[0];
for (let el of arr) {
if (el > max) {
max = el;
}
}