
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
ajax 퀴즈 풀이 중이었는데... 값은 다 가져오고 if문 쓰기 전까지는 class에 red값 준 것도 잘 반영되었는데
if문 적용하고나니 else문에 해당하는 값에 빨간색으로 칠해지는게 안되네요 , ,,
값은 여전히 잘 나오는데 뭐가 문제일까요 ㅠㅠ?? 살려주세요

작성한 코드 및 에러 메세지
function q1() {
$('#names-q1').empty()
$.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']
let temp_html = ``
if (bike < 5) {
temp_html = `<tr class="urgent">
<td>${name}</td>
<td>${rack}</td>
<td>${bike}</td>
</tr>`
}
else {
temp_html = `<tr>
<td>${name}</td>
<td>${rack}</td>
<td>${bike}</td>
</tr>`
}
$('#names-q1').append(temp_html)
