Notes for String Method 1:- // var str = "Javascript is a great language"; // var a = str.length; // 1) length >> this a property that is why it will have no round braces // document.write(a); // var str = "Javascript is a great language"; // var a = str.toLowerCase(); //2) toLowerCase : it is used for lowercase // document.write(a); // var str = "Javascript is a great language"; // var a = str.toUpperCase(); //3) toUpperCase : it is used for uppercase // document.write(a); // var str = "Javascript is a Great language"; // var a = str.includes("Great"); // 4) includes >> it will search and return true or false if it find any // document.write(a); // var str = "Javascript is a great language"; // var a = str.startsWith("JavaScript"); // 5) startsWith >> it will search from starting chr or word // document.write(a); // var str = "Javascript is a great Language"; // var a = str.endsWith("Language"); // 6) endstsWith >> it will search from ending chr or word // document.write(a); // var str = "Javascript is a Great language"; // var a = str.search("Great"); // 7) search >> it will works as include but it will not return true or false instead it will return the index of that word // document.write(a); // var str = "Javascript is a Great is Language"; // var a = str.match(/is/g); // 8) match >> it will works as search but it will not return the index of that word but it will make an any of that. Note: for match we need to use forward slashes instead of two quotes and need to pass g after second slash. g means globally, if you pass g then it will search again again for that word and it will make an arry. // document.write(a); // var str = "Javascript is a Great is language"; // var a = str.indexOf("is"); // 9) indexOf >> it will works as it works in arrays. To find out the index // document.write(a); // var str = "Javascript is a Great is language"; // var a = str.lastIndexOf("is"); // 10) indexOf >> it will works as it works in arrays. It will search from last and return the index number. // document.write(a); // var str = "Javascript is a Great is language"; // var a = str.replace("is","are"); // 11.1) replace >> it will work as it works in msword and msexcel. You have to pass two parameters, first one that you want to replace and other one that you want to replace with. // document.write(a); // With regular expression and using g (globally) // var str = "Javascript is a Great is language"; // var a = str.replace(/is/g,"are"); // 11.2) replace >> For this you have to use regular (//) expression and g (globally) then it will search globally and replace it all. // document.write(a); // var str = " Javascript "; // var a = str.trim(); // 12) trim: it is used to trim extra spaces. Trim will be use for form. // alert(a); // // document.write(a);
please count you by correct method becuase if you are count in length so start from 1 and if you count in index so start from 0.so please decide first .
Sir apka way of teaching is so beautiful agar ap real life example b bata daaa to zayada achaa samaj atee ha yanee ka hmm ya khaa use krr sktay haaa jb hmm b ya kam kray gay is tarhaa ke examples replay plzzz
Muddusar sabhi videos ke sath toh real life example batana mushkil hai kyu ke wo aapko samajh nahi aayega abhi is level pe. Han meine PHP mein Projects banaye hai aur wha par Javascript aur jQuery ko use bhi karke dikhaya hai.
Sir make a video on escape sequence character in javascript I view some video on this topic but I can't understand how we are use it in javascript. Sir if you have any video on that topic so send me link of that video.
Read this article for Escape Sequence Character : www.geeksforgeeks.org/how-to-use-escape-characters-to-correctly-log-quotes-in-a-string-using-javascript/
brother replace function kis lyay use hota hai?.. ku k hum replace ki jaga manually array me jaky usy change kr sakty hai yani array me agar javascript likha hai to ham usy manually khud javascript erase kr k php b to likh skty hain.. to ye replace function ki zaroorat ee nahi kindly bta dain kis lyay use hota ha
Dear aap software development seekh rahe ho jha pe kuch manually nahi hota hai. Jab aap website ya software banake client ko doge toh aapka client array or string ki value ko kaise change karega kyu ki use toh coding aati nahi hai. Isliye aapko replace use karna padega.
we count start array from 0 ,, but one thing when use indexOf or lastIndexOf where to should satrt count character , and i dont understand how count (is lastIndexOf in index number 22 ) if its count from last its no 22 ,
Hello Raid, In this video lastIndexOf just searches from last but it is giving a index of (is) is 22 because it is counting a index number from starting and not from last.
basically lastIndexOf() search the last occurrence of searched value .e.g if you search lastIndexOf("is") then it starts search from start and search in whole string and where it finds (is) last time it gives index of that. So it's giving index 22 in video example.
If you want to give space with document.write then use "nbsp;" space entity code like this : document.write("Hello World"); In this above code I gave 3 spaces between Hello and world.
At the time of 10:24 vo indexOf() hi search kr rha h last kese count kar ke dekhna jara last se search krega to 11 aana chahiye pls explain krna apne count krke hi nhi bataya phle vale count krke btaya tha isme nhi
No one can replace your teaching method sir, the way of teaching is simple but effective, thanks for your efforts...
Thanks for appreciating my work :)
What a tremendous and vivid tutorial.
Thank you so much for your afford and dedication.
so grateful to you.
May Allay bless you
Thank you so much!
Notes for String Method 1:-
// var str = "Javascript is a great language";
// var a = str.length; // 1) length >> this a property that is why it will have no round braces
// document.write(a);
// var str = "Javascript is a great language";
// var a = str.toLowerCase(); //2) toLowerCase : it is used for lowercase
// document.write(a);
// var str = "Javascript is a great language";
// var a = str.toUpperCase(); //3) toUpperCase : it is used for uppercase
// document.write(a);
// var str = "Javascript is a Great language";
// var a = str.includes("Great"); // 4) includes >> it will search and return true or false if it find any
// document.write(a);
// var str = "Javascript is a great language";
// var a = str.startsWith("JavaScript"); // 5) startsWith >> it will search from starting chr or word
// document.write(a);
// var str = "Javascript is a great Language";
// var a = str.endsWith("Language"); // 6) endstsWith >> it will search from ending chr or word
// document.write(a);
// var str = "Javascript is a Great language";
// var a = str.search("Great"); // 7) search >> it will works as include but it will not return true or false instead it will return the index of that word
// document.write(a);
// var str = "Javascript is a Great is Language";
// var a = str.match(/is/g); // 8) match >> it will works as search but it will not return the index of that word but it will make an any of that. Note: for match we need to use forward slashes instead of two quotes and need to pass g after second slash. g means globally, if you pass g then it will search again again for that word and it will make an arry.
// document.write(a);
// var str = "Javascript is a Great is language";
// var a = str.indexOf("is"); // 9) indexOf >> it will works as it works in arrays. To find out the index
// document.write(a);
// var str = "Javascript is a Great is language";
// var a = str.lastIndexOf("is"); // 10) indexOf >> it will works as it works in arrays. It will search from last and return the index number.
// document.write(a);
// var str = "Javascript is a Great is language";
// var a = str.replace("is","are"); // 11.1) replace >> it will work as it works in msword and msexcel. You have to pass two parameters, first one that you want to replace and other one that you want to replace with.
// document.write(a);
// With regular expression and using g (globally)
// var str = "Javascript is a Great is language";
// var a = str.replace(/is/g,"are"); // 11.2) replace >> For this you have to use regular (//) expression and g (globally) then it will search globally and replace it all.
// document.write(a);
// var str = " Javascript ";
// var a = str.trim(); // 12) trim: it is used to trim extra spaces. Trim will be use for form.
// alert(a);
// // document.write(a);
good work
The best channel for understanding coding from scratch and my making videos short, it helps us to understand much better
best video ever.........
many problem solve in string method......
Thanks for this video brother...
Best teaching methods on TH-cam for javascript . very useful for bigener. thank you sir!
Glad you think so!
BABA JI BAHUT HI ACHHA KNOWLEDGE DIYA HAI AAPNE❤❤❤❤❤❤❤
sir you are amazing sch a great teaching method lots lof love... from pakistan
Thanks and welcome Usama :)
best teacher ever on youtube. when will come to advance javascript tutorial? we are eagerly waiting for that!
Bhai pehle ye to sikh jao ache se
thank you bro it was very clear explaination😊
You are welcome!
Thnx for this tutorial u r all tutorial are too much helpful
Glad to hear that.... Thanks and welcome :)
btw bruh your course depth is very nice. aisy course log paid dety hain or ap.. gid will safe you Always
Thanks a ton
@@YahooBaba ❤💖💖
sir exilent
work
bhaut achaa krate ho ap
samjh me aa gya
sab
Your welcome :)
Very very nice bro❤❤❤❤ Thank you for such a beautiful presentation
Sir you;re Great, Thank you so much
Thnx teacher u r great many many respect and love for u
Thanks and Welcome :)
So many videos I watched before and those are so confusing thanks for this video 🤩
Happy to help!
Thanku so much sir 😍😍😍 this help me a lot😍😍 once again thanku so much for such amazing explanation 😍😍❤
Most welcome 😊
Thanks for your effort and knowledge. Best Best and super duper Best.
This was the type of video i was searching for. Thanks
Glad you liked it!
Best teacher ever.
Thanks and welcome :)
Great
Amazing sir thank you Soo much ❤
Your welcome :)
please count you by correct method becuase if you are count in length so start from 1 and if you count in index so start from 0.so please decide first .
Literally bero I'm also confused your comment help me a lot thanks❤
Very needful video for me ...
Glad to hear that
very easy explained thanks so much bro !
Most welcome :)
Yahoo baba sir plz. Make tutorial for C++ plz.
Bhaut badia sir
Thank You Sir
great knowlage, thanks
thank you so much
very very very helpful videos
Sir apka way of teaching is so beautiful agar ap real life example b bata daaa to zayada achaa samaj atee ha yanee ka hmm ya khaa use krr sktay haaa jb hmm b ya kam kray gay is tarhaa ke examples replay plzzz
Muddusar sabhi videos ke sath toh real life example batana mushkil hai kyu ke wo aapko samajh nahi aayega abhi is level pe. Han meine PHP mein Projects banaye hai aur wha par Javascript aur jQuery ko use bhi karke dikhaya hai.
Happy teachers Day sir💞💞💕💕💕I learned a lot from you.Thank u so much🎈🎈
Thanks Veerpal :)
very informative
very nice...txs for the tutorials.
Sir in length method it will count start from index 1 not from 0 right ?
its awesome🥰🥰🥰
sir please make videos on react
congrats for 100k :D
Thanks! 😃
Sir, include method ko array ke saath karna ziyada accha rahega shayad
Gajab bhai
Thank you 🖤
sir trim method me only starting se space remove krta he both side se nhi krta kya ye sahi he ?
Sir search method aur indexOf to same hai na ?
nice.bangladesh
Zabardast video
Thanks Maeenu
Please make a videos about regular expressions
Harsh right now i am teaching PHP and after that i will make a course on Advance JavaScript with Regular Expression topic.
Thanks a lot i m waiting for that ❤️❤️
Sir kya ye sab web designing me use hoga, aur hoga to kab?
Please reply, I am waiting
Designing mein iska use nahi hota. Iska use Front end development mein hota hai jab hum HTML Forms ke sath kaam karte hai.
Beginner level ka complete course ha ye??
Yes it is complete course for beginner.
Regular expressions m globally dhoonfy gaa
Please make project with HTML, CSS & JavaScript
Yes sure
Sir make a video on escape sequence character in javascript I view some video on this topic but I can't understand how we are use it in javascript. Sir if you have any video on that topic so send me link of that video.
Read this article for Escape Sequence Character :
www.geeksforgeeks.org/how-to-use-escape-characters-to-correctly-log-quotes-in-a-string-using-javascript/
brother replace function kis lyay use hota hai?.. ku k hum replace ki jaga manually array me jaky usy change kr sakty hai yani array me agar javascript likha hai to ham usy manually khud javascript erase kr k php b to likh skty hain.. to ye replace function ki zaroorat ee nahi kindly bta dain kis lyay use hota ha
Dear aap software development seekh rahe ho jha pe kuch manually nahi hota hai. Jab aap website ya software banake client ko doge toh aapka client array or string ki value ko kaise change karega kyu ki use toh coding aati nahi hai. Isliye aapko replace use karna padega.
@@YahooBaba thik thik thankyou sir
kindly share some latest project
search or indexOf methods are same????????
What is the different Between search and indexOf?
indexOf includes 2 parameters indexOf("search value" , index number where it will start searching);
👌👌👌👌👌
sir,react.js or node .js kese use kia jai is pe video series bna dein.
(/is/g) in match method and replace not working...help with that(9:33) (11:57)
other content are awesome.👍👍
Match bhi casesensetive hai kya
Yes
@@YahooBaba thanks
what is the difference between property and method?
so IndexOf() and search() method is same.
Sir, When are you publishing Advance Javascript Tutorials , which you had said at 8:55?
After completing PHP course
@@YahooBaba Sir learning php is must for advance js ??
No PHP is not required for Advance JS
@@YahooBaba sir I know python so I should go with django or php?
sir Apki advance j.s KI videos kaha hain please tell me...
we count start array from 0 ,, but one thing when use indexOf or lastIndexOf where to should satrt count character , and i dont understand how count (is lastIndexOf in index number 22 ) if its count from last its no 22 ,
Hello Raid, In this video lastIndexOf just searches from last but it is giving a index of (is) is 22 because it is counting a index number from starting and not from last.
basically lastIndexOf() search the last occurrence of searched value .e.g if you search lastIndexOf("is") then it starts search from start and search in whole string and where it finds (is) last time it gives index of that. So it's giving index 22 in video example.
But sir why only in alert box the space appeared & not directly by using document .write
If you want to give space with document.write then use "nbsp;" space entity code like this :
document.write("Hello World");
In this above code I gave 3 spaces between Hello and world.
Bro advanced javascript video upload karo na
After PHP :)
@@YahooBaba ok
Bhai aur kitni videos baki hai...😍😍
Plz reply
Hello Krutik, 15 to 20 videos abhi baki hai JavaScript Basics Ki aur uske baad lagbhag 15 videos Advance ki bhi aayeinge
Thanks sir you are awesome.
@@YahooBaba bahot achcha ja rahe ho sir, topic itna vast hai, aur aap ekdam basic se sikha rahe ho. achcha lagta hai padhneko.. keep it up
Kya string methods important hai js me???
Yes it is very useful function.
hello sir, regular expression and advance javascript tutorial playlist no found , please help....!!!
I have not made that videos but soon I will make it
@@YahooBaba thanks for reply sir, can i get a job in company after learing from here...
is it enough for job , i have learn (html, javacript,java,mysql)
osm
Alternate character in string..kaise uppercase karte hai?
For that you have to use "For Loop " with substring(start, end) function.
ctrl+F jaisa find character javascript mai kaise banaye ??
You know my teachers make us to write html js css codes in notepad
😂😂hamara to khali prime aur palindrome karata hai 😂
sirji mera lastIndexOf() method nai chlrha chrome pe its not supporting
Paste ur code here
Hello sir can you explain how to print prime number in JavaScript
//try this
// list of prime number from 2 to 100
for(let n=2; n
Sir str.length zero se nehi balki 1se start hotahe
Sir length property apane galat sikhadi kyaki length property me string length count 1 se start hota hai apene 0 se batay hai...
Yes u r right.
At the time of 10:24 vo indexOf() hi search kr rha h last kese count kar ke dekhna jara last se search krega to 11 aana chahiye pls explain krna apne count krke hi nhi bataya phle vale count krke btaya tha isme nhi
lastIndexOf mai word peeche se hi search karega lekin uska index aage se 0 se start hoga isliye 22 output print aaya hai
Are bhai index to is ka 10 aayega na? Iase 11?
Dear index ka count 0 zero se shuru hota hai.
sir can you plz shaare your notes
Get it from our website : www.yahoobaba.net
Bhai clrscr ka use karo na ra
Length 1 se start hota hai y bataya nhi apne
🙏👍👍
Who is watching this in 2024 june9
Sir trim nhi samgh aaya
Maine he replace wala method se mare dost ka nam ko uske gf se replace karke ak program banaya 😂,
😂
Thank You Sir
Thanks for teaching us 😊😊😊
My pleasure 😊