You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consta='Hello~';// split: 문자를 인수 기준으로 쪼개서 배열로 변환// reverse: 배열 뒤집기// join: 배열을 인수 기준으로 문자로 병합해 반환constb=a.spilt('').reverse().join('');// 메소드 체이닝console.log(a);// Hello~console.log(b);// ~olleH