DEV Community

Cover image for String in JavaScript.!
Hodiev
Hodiev

Posted on • Updated on

String in JavaScript.!

String

string matinli malumotlarni saqlash uchun mo'ljallangan va ularni double quotes va single quotes lar ichiga yozib hosil qilish mumkin.!
misol uchun:

let jsName = 'JavaScript';
console.log(jsName);
// natija - JavaScript
Enter fullscreen mode Exit fullscreen mode
let lorem_ = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
console.log(lorem_);
// natija - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Enter fullscreen mode Exit fullscreen mode

Keyinchalik 2016 yildan, ES6 dan boshlab stringlarni Template usulda hosil qilish imkoniham mavjud bo'ldi, template string quyidagi usulda hosil qilinadi.!

Image description

Top comments (0)