Can I write my ternary expression like this? It’s useless if I write it result is the fetched data, I want to append this to html I want to judge whether it is empty, for If empty, it will display "No Class"
If the content of result[dateNow] is empty, according to your expression, it will not die in the end. "No class" should return empty Unless result[dateNow] returns undefined, your expression can display "No class" Bar
If the content of result[dateNow] is empty, according to your expression, it will not die in the end. "No class" should return empty
Unless result[dateNow] returns undefined, your expression can display "No class" Bar
Initially, there seems to be no problem. Please help to complete the code involved in the problem, thank you.