250 Câu hỏi trắc nghiệm Javascript, CSS, HTML có đáp án - Phần 2

Đoạn code trên sẽ có kết quả là: const notifications = 1; console.log( `You have ${notifications} notification${notifications !== 1 && 's'}` );

22/50

Đoạn code trên sẽ có kết quả là:
const notifications = 1;
console.log(
`You have ${notifications} notification${notifications !==
1 && 's'}`
);

You have 1 notification

You have 1 notifications

You have 1 notificationfalse

Giải thích

Chọn đáp án C