400+ câu trắc nghiệm Kịch bản ASP/Javascript/ PHP có đáp án - Phần 5

Để chèn thêm 1 ký tự lạ trong JavaScript ví dụ dấu ('') ta viết theo cách nào?

15/25

Để chèn thêm 1 ký tự lạ trong JavaScript ví dụ dấu ('') ta viết theo cách nào?

document.write('' ''This text inside quotes'');''

document.write('' \''This text inside quotes.''\'' );

document.write('' \''This text inside quotes.''\ '');

document.write('' \''This text inside quotes.''\'');

Giải thích

Chọn đáp án B