all string important method in javascript | javascript tutorial for beginners in hindi

Published: 07 October 2021
on channel: catch Error
11
1

var sen='In this tutorial we learn about string methods in javascript';
// //slice
// console.log(sen.slice(0,8));
// // here first is starting index and second is end index and end index is excluded
// console.log(sen.slice(2));
// // end index automatically set length of string

// console.log(sen.slice(5,-2));
// // slice also take -index which start from end of the string and negative index start from -1 not 0




//substr method
// console.log(sen.substr(2,5))
// here first is starting index and second is length means how many indexes we needed after 2(index 2 is also included in length)


//substring method
// console.log(sen.substring(2,5));
//here first index is starting and second is ending index and this is very similar to slice but it doesn't take negative indexes


//replace method
// var rep_sen=sen.replace('javascript','python');
//first is what we want to replace and second from which we want to replace
// console.log(rep_sen);



//upppercase and lowercase
// console.log(sen.toUpperCase());
// console.log(sen.toLowerCase());


//trim
// var channel_name=' catch error ';
// console.log(channel_name.trim());
//used to remove extra spaces


//charat
// console.log(sen.charAt(1));
//used to get a specific value on a particular index
//charat takes index values as parameter



//using index
// console.log(sen[3]);
// both are same charat and this method


//split function
// console.log(sen.split(' '));
//it split the string by split function parameter
//in this parameter is space so it's split string from space and return a javascript array


//conact method
// var channel_name="catch error";
// var channel_like=": please do subscribe my channel and like the video";
// console.log(channel_name.concat(channel_like));
//used to concat to two string in javascript




please subscribe my channel and like the video and share the video 🙏 🙏


live server hosting 👉    • live server hosting || vs code live server...  


java extensions 👉    • important extensions for java in vs code |...  


Switch case in java 👉    • modern switch case in java || new switch c...  


How to add snippet for java in VS code 👉    • How to add snippet for java in VS code || ...  


How to install eclipse for web page using java 👉    • How to install eclipse for web page using ...  


How to add dynamic web project in eclipse 👉    • How to add dynamic web project in eclipse ...  


how to host website on github in hindi 👉    • how to host website on github in hindi || ...  

function in javascript 👉    • function in javascript || functions types ...  


How to create snippet in eclipse 👉    • How to create snippet in eclipse || how to...  


How to host react app on firebase free 👉    • How to host react app on firebase free || ...  


ROman to integer leetcode problem 13 👉    • Roman to integer python code || convert ro...  










github profile 👉 https://github.com/kjjindal


linkedin profile 👉   / kalpit-jindal-6190101aa  




#howto #keeplearning #dosomethingnewalways


On this page of the site you can watch the video online all string important method in javascript | javascript tutorial for beginners in hindi with a duration of hours minute second in good quality, which was uploaded by the user catch Error 07 October 2021, share the link with friends and acquaintances, this video has already been watched 11 times on youtube and it was liked by 1 viewers. Enjoy your viewing!