
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
웹개발 종합반 2주차 숙제 해설 영상 보다가,
아래 코드에서 볼드처리된 20은 왜 지우지 않는지 궁금합니다.
temp 에 "현재 온도" 가 들어가고 이후 20이 뒤따라 나와야하는 것 아닌가요?
(ex. -0.0320) 으로 표기 되지 않는 이유가 무엇인가요?

<script>
$(document).ready(function () {
fetch("http://spartacodingclub.shop/sparta_api/weather/seoul").then(res => res.json()).then(data => {
let number = data['temp']
$('#temp').text(number)
})
})
</script>
</head>
<body>
<div class="mytitle">
<h1>내 생애 최고의 영화들!</h1>
<div>현재 서울의 날씨 : <span id="temp">20</span>도</div>
<button onclick="hey()">영화 기록하기</button>
