Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
J.S. how to avoid ' undefined ' on switch?
This code is supposed to display summer when it is summer, fall when it's fall, winter when It's... But right now It's summer, and It displays undefined for the other seasons. Is there a way to secure that '(avoid undefined)?
3 ответов
+ 1
default:
+ 1
use default to set a value if all case values are not the input value