#10 🛑 Ten JavaScript Useful and Important String Functions | - adarshtiwari1998/JavaScript-Crash-Course-Project-v1 GitHub Wiki

*****************************Tutorial Start đŸ”Ĩ ********************************

String Important Functions

1. concatenate function , concat()

Concat function combine one or more string are goings into one existing string, current string me jitne element dege usko combine kar dega.

<!--2. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


2. charAt(index) function

The function is basically return the character at exposition with in the string.

<!--3. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


3. indexOf() function

Ye function charAt() function ka opposite hai, charAt() function ko hum index de rhe the, too voo character de rha tha, indexOf() function me hum character dege too voo index dega.

<!--4. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


4. LastIndexOf() function

ye bhi humko index dega but voo last se check karega.

<!--5. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


5. toUpperCase() function

gar humko capital letter ki string chahiye saari too hum iss function ka use karege.

<!--6. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


6. toLowerCase() function

agar humko lower letter ki string chahiye saari too hum iss function ka use karege

<!--7. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


7. substring(start, end) function

  kisi bhi string se agar humko choota sa parts nikalna hai too hum iss function ka use karte hai,
    yaha pe start index inclued hai but end index excluded hai, voo isko check nhi karega end wale ko, example below:
    start is included, but end is not included it is excluded. And agar hum end lagana bhul gye too voo sab start se end 
    tak print kar dega.

<!--8. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


8. startsWith() function

mera pass koi string hai and usko muzea check karna hai kya voo string iss () letter se start ho rhi hai, too hum iss startsWith() ka use kar sakte hai.

<!--9. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


9. endsWith() function

ye check karta hai ki koi string iss name se end ho rhi hai agar ho rhi hogi too return kardega true and agar uss word se nhi ho rhi hogi too return kardega false kya hamari current string given string se end ho rhi hai yaa nhi, ye check karta hai.

<!--10. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


10. split() function

agar humko koi cheez split karni hai (thodna hai), too hum split function use kar sakte hai. agar humko given string me space ko hatana hai, todhna hai too hum iss function ka use kar sakte hai.

<!--11. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->


Bonus: 11. trim() function

ye basically start and end ke whitespaces ko remove karta hai.

<!--11. JAVASCRIPT CODE SNIPPET HERE, please check the repo to clone the code-->

*****************************Tutorial End 🚀 ********************************