
오늘 배운 내용
아래는 수정한 코드다.
const service= config.apikey;
const url1= `http://www.kobis.or.kr/kobisopenapi/webservice/rest/movie/searchMovieList.json?key=${service}`
const url2 = `http://www.kobis.or.kr/kobisopenapi/webservice/rest/movie/searchMovieInfo.json?key=${service}`
fetch(url1)
.then(response => response.json())
.then(response => console.log(response))
fetch(url2)
.then(response => response.json())
.then(response => console.log(response))
그리고 공부해야할 점을 지적해 주셨다.
위에 썼듯이 fetch 공부를 더 할 것, 그리고 template literal도 공부할 것. 미처 이해를 덜 한 this도, 새 과제로 나온 localStorage도 공부해야하는데 갈 길이 매우 멀다...
그리고 난생 처음 git merge를 하는 도중 또 빨간 줄을 만났다^^...
automatically merge 안됨 이랬는데 작은 글씨로 물론 그래도 merge할 수 있어~^^이래서 과감하게 도전했다. 요인은 달라진 부분때문이었는데 git pull때 배운것처럼 코드가 아닌 부분을 수정했고, 변경된 변수명도 삭제하거나 수정했다. 시뻘건 글씨들을 봐서 그런가 이제 pull에 나오는 충돌도 귀엽게 보인다.

지금은 짧은 코드라 바로바로 수정이 가능한데 긴 코드는 어떻게 될지... 기대가 된다.🥲