코딩테스트 대비

모크장·2022년 9월 30일

array.indexOf("Hello");
array.lastIndexOf("Hello",start num)
array.inclues("Hello") //true or false

.sort() 오름차순
.reverse()

1번 sort() 내림차순 문제
https://hianna.tistory.com/409

2번 reverse() 문제 for 문으로 해결
https://codechacha.com/ko/javascript-reverse-string/

3번 sort() 오름차순 문제

5번 ASCII code로 변환
https://xively.tistory.com/68

profile
시작하는 개발자

0개의 댓글