특정값이 , a ,b,c, d 중 하나에 해당하면 if문 - 배열을 사용
value = 'b'if value in ['a', 'b', 'c', 'd']: print("특정값에 해당합니다.")else: print("특정값이 아닙니다.") ------------------------------------------- const value = 'b';if (['a', 'b', 'c', 'd'].includes(value)) { console.log("특정값에 해당합니다.");} else { console.log("특정값이 아닙니다.");}