1. 알고리즘 특강 3일차
2. 프로그래머스
3. 8조 코드 리뷰
4. git pull, revert, reset 연습
1.
2.
중앙값 구하기
아이스 아메리카노
문자열 뒤집기
배열자르기
최댓값 만들기
3.
서치함수 구현 방법
1)
let movies = rows.filter((movie) => {
return movie.title
.includes(searchIntemValue);
});
movies.forEach(a) => {
let title = a["title"];
let id = a["id"];
...
..
.
2)
const movieCards = Array.from(document.getElementsByClassName('col'));
const filteredMovieCards = movieCards.filter((movieCard) => {
.querySelector(".card-title")
return movieTitle.include(searchInput);
});
movieCards.forEach((movieCard) => {
if(filteredMovieCards.includes(movieCard)) {
movieCard.style.display ="";
} else {
movieCard.style.display ="none";
}
4.
pull
- git commit -m "" // 내 로컬에서 업데이트 된 부분 저장 (안하고 pull 하면 날아감)
revert
git revert <취소할 커밋> : <취소할 커밋>이 취소된 새로운 커밋 만들기
reset
git reset <되돌아갈 커밋> : <되돌아갈 커밋> 으로 리셋하기