
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
미세먼지 수치 콘솔에 옮기는 작업 하고 있는데요.
코드 동일하게 적은 듯 하나, 콘솔에 데이터가 불러와지지 않습니다.
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>Fetch 시작하기</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
fetch("http://spartacodingclub.shop/sparta_api/seoulair").then(res => res.json()).then(data => {
let rows = data['RealtimeCityAir']['row']
rows.forEach((a) => {
consolo.log(a)
})
console.log(data['RealtimeCityAir']['row'][0])
})
</script>
</head>
<body>
Fetch 연습을 위한 페이지
</body>
</html>
