Skip to content

#9 πŸ›‘ String in JS | Ways to create string | String interpolation |

Adarsh Tripathi edited this page Jul 26, 2021 · 2 revisions

*****************************Tutorial Start πŸ”₯ ********************************

1. What is String?

The string object is used to represent and manipulate a sequence of characters.

string aik type hai yaa aik object hai jiski help se hum log seqence of character wale jitni bhi values ho sakti hai, jitna data ho sakta hai, usko store kar sakte hai.

**Example: **

  • "a"
  • "abc"
  • "abcdefgh"

<!-- 1.JAVASCRIPT CODE USED HERE, please check repo code -->

2. How to creating a string

Method are:

  • Using Literal

<!-- 1.JAVASCRIPT CODE USED HERE, please check repo code -->

  • using String() constructor

<!-- 1.JAVASCRIPT CODE USED HERE, please check repo code -->

3. Different ways of creating string like '', "", ``

<!-- 1.JAVASCRIPT CODE USED HERE, please check repo code -->

4. String Interpolation Example

<!-- 1.JAVASCRIPT CODE USED HERE, please check repo code -->

*****************************Tutorial End πŸš€ ********************************

Clone this wiki locally