new Array() (1) 썸네일형 리스트형 Simple Fun #265: The Janitor And His Mop, lastIndexOf(), new Array(n), fill() | Codewars [자바스크립트] Codewars 6kyu 도전. 좀 쉬워보이는 문제로 고름. Simple Fun #265: The Janitor And His Mop. Codewars: Achieve mastery through challenge Codewars is where developers achieve code mastery through challenge. Train on kata in the dojo and reach your highest potential. www.codewars.com 입력값으로 소문자 문자열이 주어짐. 첫 a부터 마지막 a 사이의 거리, 첫 b부터 마지막 b 사이의 거리, ... , 첫 z부터 마지막 z 사이의 거리를 배열에 담아내는 문제. function theJanitor(word) { const.. 이전 1 다음