+ 1

Помогите решить!

console.log('I'm learning JavaScript'); console.log("A quote: "Java is to JavaScript as ham is to hamster." "); // Вивести послідовно

9th May 2021, 1:50 AM
Slava Zubko
Slava Zubko - avatar
2 Réponses
0
Slava Zubko You have to use scape character ( \ ) to print string with single quotes or double quotes. Для друку рядка з одинарними або подвійними лапками потрібно використовувати символ втечі (\). console.log('I\'m learning JavaScript'); console.log("A quote: \"Java is to JavaScript as ham is to hamster.\" ");
9th May 2021, 6:11 AM
A͢J
A͢J - avatar
0
Дякую!
11th May 2021, 10:26 AM
Slava Zubko
Slava Zubko - avatar