HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
프로그래머스 프론트엔드 데브코스 2기
프로그래머스 프론트엔드 데브코스 2기
/
🍎
재호팀
/
고양이 사진첩 과제

고양이 사진첩 과제

태그
날짜
Apr 26, 2022
  1. 첫번 쨰 요구 사항
지금 구현된 코드에서는 state에 대한 정합성 체크를 전혀 하지 않는데, 이 부분을 보충해주세요.
 

Type Check

 
자바스크립트에서 타입체크 하는 방법
  • typeof

1. toString을 사용한 helper 함수 이용

2. instance of 사용

 
 
  • https://poiemaweb.com/js-type-check
  • https://gomakethings.com/true-type-checking-with-vanilla-js/
 
 
  1. 두번째 요구사항
 

이전 상태와 다음 상태를 비교 어떻게??