Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 5 - Basic Data Structures

5.2 String

A string is a sequence of characters. In JavaScript, we can declare a string as follows:

let myStr = "This is a string";
console.log(myStr);

We'll learn various string operations later in this course.