
2-9 퀴즈에서 console.log를 했을 때 console에 안 떠요
response까지는 되었는데 이 단계에서 막혀요
<script>
function q1() {
// 여기에 코드를 입력하세요
$.ajax({
type: "GET",
url: "http://spartacodingclub.shop/sparta_api/seoulbike",
data: {},
success: function (response) {
let rows = response('getStationList')['row'];
for (let i = 0; i < rows.length; i++) {
let name = rows[i]['stationName']
let rack = rows[i]['rackTotCnt']
let bike = rows[i]['parkingBikeTotCnt']
console.log(name, rack, bike)
}
}
})
}
</script>
