✅ Weather
→ 현재 위치의 날씨를 보여주기
✔️ navigator
navigator.geolocation.getCurrentPosition()
- getCurrentPosition
- 2개의 argument필요
- 하나는 모든 게 잘 됐을 때 실행 될 함수
- 나머지 하나는 에러가 발생했을 때 실행 될 함수
- success함수는 GeolocationPosition object 하나를 입력 받음/유저의 위치를 받음
✔️ fetch(url).then(response⇒response.json().);