
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
답안 내용을 해당 내용으로 작성을 했는데 결과가 정답에서 보여주는 해당 코드랑 동일하게 나오는데요. 왜 동일하게 나오는지 알 수 있을까요??
<script>
$(document).ready(function () {
fetch("http://spartacodingclub.shop/sparta_api/weather/seoul").then(res => res.json()).then(data => {
$('#temp').empty()
let number = data['temp']
$('#temp').text(number)
})
})
</script>

작성한 코드 및 에러 메세지
<script>
$(document).ready(function () {
fetch("http://spartacodingclub.shop/sparta_api/weather/seoul").then(res => res.json()).then(data => {
$('#temp').empty()
let number = data['temp']
$('#temp').append(number)
})
})
</script>
