Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 215 Bytes

File metadata and controls

17 lines (12 loc) · 215 Bytes

importance: 5


Viết lại 'if' thành '?'

Viết lại lệnh if này dùng toán tử điều kiện '?':

let result;

if (a + b < 4) {
  result = 'Dưới';
} else {
  result = 'Trên';
}