Bro i am international student so its prettty hard to understand sometimes but your channel gives me all of information thanks for making such an amazing tutorials for us❤
Sir aap slice or substring me galat bata diye hain.. jis case me aap bataye hain usme same result aayega .. str.slice(0,2)== str.substring(0,2) will give same result.. But one may ask where is parting of the face.. Ya if you put 1st argument > 2nd argument 1>substring() substring swipe the value and produce same result. str.substring(2,0) =str.substring(2,0) .. 2 > slice() slice do nothing..
@@YahooBaba haaa sir. Ap ankhe band karke suniyega. And thank you so much sir apke sabhi courses ke liye. Muze pata he thanks bohat chota word he apke kam ke liye... Lekin fir bhi dil se thanks.
I think something is wrong here, in both slice and substring method end index is exclusive and yes slice and substring works in the same manner but the difference is slice can handle negative values and substring cannot.....and as you mentioned in the above answer substring's second parameter will be end index not the number of character... substring can have two parameters i.e start and end , @@YahooBaba
// Notes for String Method Part2:- // var str = "Javascript is a GREAT language"; // var a = str.charAt(3); // 13) charAt >> first define a position then it will return the chr that is on that position // document.write(a); // var str = "Javascript is a GREAT language"; // var a = str.charCodeAt(1); // 14) charCodeAt >> it will return ASCII CODE for chr. You have to pass the index number. // document.write(a); // var str = "Javascript is a GREAT language"; // var a = String.fromCharCode(90); // 15) fromCharCode >> it will return a ASCII CODE, you have to pass the code to see the CHAR. // document.write(a); // var str = "Javascript is a GREAT language"; // var str2 = "Hello"; // var str3 = "World"; // var a = str.concat(str2,str3); // 16) concat: It is used to concat or merge two or more strings. // document.write(a); // var str = "Javascript is a GREAT language"; // // var a = str.split(" "); // var a = str.split("i"); // // 17) split: it will break every word of string and then make an array of it. Note: you have to pass any parameter like " " spcae then it will do the rest of the work // document.write(a); // var str = "Javascript is a GREAT language"; // var a = str.repeat(2); // 18) repeat: if you give any string to this function and times that you wanna repeat then it will repeat the string that number of times. You also have to pass the parameters in this function as a times for repeating. // document.write(a); // var str = "Javascript is a GREAT language"; // // var a = str.slice(3); // // var a = str.slice(3,10); // // var a = str.slice(0); // var a = str.slice(-2); // // 19) slice: it will works as array's method of slice. You have to pass two argument, start and end parameters. It will find same and convert it into new string. // document.write(a);
// var str = "Javascript is a GREAT language"; // var a = str.substr(2); // // var a = str.substr(3,5); // // 20) substr: it will works as slice but little bit differently. You have to pass two parameters as slice. First parameter will be start and last one will be end but it will count after the start number not as slice. In slice it will count the second parameter from starting of string like absolute starting index as '0' // document.write(a); // var str = "Javascript is a GREAT language"; // var a = str.substring(3,7); // // !doubt! I guess it is not working as described in the TH-cam video. It should be working differently as compare to slice but it won't work like that. I don't know why. If you are not sure then check it out below code and see it by yourself. // // var a = str.slice(3,7); // // 21) substring: it will works as slice but little bit differently. In this slice will count the "i" also but substring didn't count it. // document.write(a); // var str = "Javascript is a GREAT language"; // var str = 50; // var a = str.toString(); // 22) toString : it convert any value to string. eg> numberic to string . // document.write(a); // document.write(str + 20); // For checking purpose
// var str = "Javascript is a GREAT language"; // var a = str.valueOf(); // // 23) valueOf : It will return the value but it is not important to use. // document.write(a);
Sir toString() function or method can convert the any datatype to string ? because i tri with array but get the output but don't now how to check this is string or array.
when will you make the video when to use this string methods in real you have said that at the end you will make it till now u have not and make it for the array also.
CSS3 mein meine sari properties waise pada di hai , kuch new properties aayi hai abhi 2 - 4 months mein unki video abhi banani hai. .... Toh aap un properties ki abhi itni wait mat karo kyu ki un properties ko abhi sare browser support bhi nahi kar rahe hai aur mere experience se mujhe lagta hai ki abhi un properties ko proper chalne mein 1 se 1.5 year lag jayega.
why the split function remove that word from where we want to split? 8:20 it should be split from that neighter be remove!!! if anyone knows please clear my concept about that.
Hello Maeenu, video late nahi hua hai .... mein daile 4:00 PM ka schedule lagaya hota hai video publish karne ka. Pure 4 baje video apne aap publish ho jati hai.
I believe that is the best string method tutorial on youtube.
Thank you so much, Sir.
Glad you think so!
Bro i am international student so its prettty hard to understand sometimes but your channel gives me all of information thanks for making such an amazing tutorials for us❤
Your welcome Daim :)
How are you international student? please elaborate?
@@mrjockey1375 ha ha ha ha ha
Super easy way to teach complex topics. Thanks for your great effort !!
Your videos are best for beginner.
I highly recommend this Playlist for learn JavaScript. :)
Thanks for sharing
☺️Happy teacher's day Sir 🍫 you are the👍 bestest teacher in the world 🌎💯💯
Thanks and welcome
3:00
Loop for character codes:-
for(var chrctr = 32; chrctr
Ty man! Love from Pakistan
Nice bro! your teaching method is very easy .
Thanks so much .
You are the best Tutor 👍
Glad you think so!... Thanks :)
actual tutorials from beginner to pro
Sir aap slice or substring me galat bata diye hain..
jis case me aap bataye hain usme same result aayega ..
str.slice(0,2)== str.substring(0,2) will give same result..
But one may ask where is parting of the face.. Ya
if you put 1st argument > 2nd argument
1>substring()
substring swipe the value and produce same result.
str.substring(2,0) =str.substring(2,0) ..
2 > slice()
slice do nothing..
👍👍👍👍
i love this channel so much i love you soo much !! keep it up
Thank you! Will do!
thanks for make this beutifull video
love you from bangladesh.
Thanks for your love and appreciation :)
sir your javascript videos are amazing and it is very easy to understand . So sir can you please make video on c++
Sir valueOf() function use for object to string value😊
Hello sir
kya aap Angular or NodeJs pr bhi video bana denge kya sir please.....
sir javascript regex pr video kb aayega bhut wait h sir apke video ka
Great tutorial, Thanks 🖤
I have also learned from here. Your explanation method is very good sir.
Thank you ❤
Your welcome :)
you are doing great job♥️♥️
Thanks Cademy :)
excellent tutorial
Glad you liked it
Sir js ke example ki video kab aayega please tell me
Sir please iske actual Kam Kya hai ..uske practical viedo make Kare...
Nice vid bro
1:59 it is prononced as æs.ki (आस्कि) code not sky code.
me yhii #comment dekhne aya tha ... jb me suna ye word :D
Jnb ap ny fromCharCode
Is mathid ki example vedio ni bnaie..
best sir
Please sir aap React js per video banaye
Hi sir im confiuse between Slice( ) and Substring( ) . I check again and again both are same please guide me.
it seems error at explaining in substring 13:20, slice me i tak count nahi kar lega sir...please correct
string methods example video kab aye ga?
Sir make video on react
Bohttttt acha
Awesome
Sir aap ka avaj amir khan jesa he! Just close your eyes and lisson😊
Aila....sachi
@@YahooBaba haaa sir. Ap ankhe band karke suniyega.
And thank you so much sir apke sabhi courses ke liye.
Muze pata he thanks bohat chota word he apke kam ke liye... Lekin fir bhi dil se thanks.
Sir slice () and substring () show same result 0℅ difference
Please guide me about splice and substring difference
Thanks
Sir JavaScript jaha tak ap ny upload keya hy, keya yaha tak seek k kahee pr job ya internship krsakta hon...?? As a webdesighner?
yeh ek complete course hai Javascript ka.....isko use karke aap koi bhi website bana sakte ho.
Thanks so much sir
Most welcome
Sir , can you explain the difference between slice and substring methods in a little detail?
In slice() we passes 2 parameters and both parameters are positions of string but in substring Second parameter is number of characters.
@@YahooBaba but it work same sir
Slice() count the nagative value also but substing () take it as zero ...key differences
I think something is wrong here, in both slice and substring method end index is exclusive and yes slice and substring works in the same manner but the difference is slice can handle negative values and substring cannot.....and as you mentioned in the above answer substring's second parameter will be end index not the number of character... substring can have two parameters i.e start and end , @@YahooBaba
Thank you sir ❤❤
👌👌👌👌👌
2 parameters in negative not work in substr() and substring() methods?
Thank you 😊
You're welcome 😊
can we add (concat) strings with numerics in javascript?
Yes we can
sir webdevelopment me job kaise milegi m non cs background se hu bsc kar rha hu math se
// Notes for String Method Part2:-
// var str = "Javascript is a GREAT language";
// var a = str.charAt(3); // 13) charAt >> first define a position then it will return the chr that is on that position
// document.write(a);
// var str = "Javascript is a GREAT language";
// var a = str.charCodeAt(1); // 14) charCodeAt >> it will return ASCII CODE for chr. You have to pass the index number.
// document.write(a);
// var str = "Javascript is a GREAT language";
// var a = String.fromCharCode(90); // 15) fromCharCode >> it will return a ASCII CODE, you have to pass the code to see the CHAR.
// document.write(a);
// var str = "Javascript is a GREAT language";
// var str2 = "Hello";
// var str3 = "World";
// var a = str.concat(str2,str3); // 16) concat: It is used to concat or merge two or more strings.
// document.write(a);
// var str = "Javascript is a GREAT language";
// // var a = str.split(" ");
// var a = str.split("i");
// // 17) split: it will break every word of string and then make an array of it. Note: you have to pass any parameter like " " spcae then it will do the rest of the work
// document.write(a);
// var str = "Javascript is a GREAT language";
// var a = str.repeat(2); // 18) repeat: if you give any string to this function and times that you wanna repeat then it will repeat the string that number of times. You also have to pass the parameters in this function as a times for repeating.
// document.write(a);
// var str = "Javascript is a GREAT language";
// // var a = str.slice(3);
// // var a = str.slice(3,10);
// // var a = str.slice(0);
// var a = str.slice(-2);
// // 19) slice: it will works as array's method of slice. You have to pass two argument, start and end parameters. It will find same and convert it into new string.
// document.write(a);
// var str = "Javascript is a GREAT language";
// var a = str.substr(2);
// // var a = str.substr(3,5);
// // 20) substr: it will works as slice but little bit differently. You have to pass two parameters as slice. First parameter will be start and last one will be end but it will count after the start number not as slice. In slice it will count the second parameter from starting of string like absolute starting index as '0'
// document.write(a);
// var str = "Javascript is a GREAT language";
// var a = str.substring(3,7);
// // !doubt! I guess it is not working as described in the TH-cam video. It should be working differently as compare to slice but it won't work like that. I don't know why. If you are not sure then check it out below code and see it by yourself.
// // var a = str.slice(3,7);
// // 21) substring: it will works as slice but little bit differently. In this slice will count the "i" also but substring didn't count it.
// document.write(a);
// var str = "Javascript is a GREAT language";
// var str = 50;
// var a = str.toString();
// 22) toString : it convert any value to string. eg> numberic to string .
// document.write(a);
// document.write(str + 20); // For checking purpose
// var str = "Javascript is a GREAT language";
// var a = str.valueOf();
// // 23) valueOf : It will return the value but it is not important to use.
// document.write(a);
Your comments are very helpfull for me thanks a lot.
sir object ka under object ko loop ma kesay print karay
Sir aap s BAAT Krna chata hu aak confusion hai browser s related BAAT kaise ho please btao
i thing there is no dif between substring and slice
best
😊😊
Sir toString() function or method can convert the any datatype to string ? because i tri with array but get the output but don't now how to check this is string or array.
Use typeof() method for that.
Thank You Sir
hello sir u have 5 input type like
1)
2)
3)
4)
5)
mare ko 3 number ko value chaiye ...without target id,classname,tag name how to get in javascript
Here is a solution :
var val = document.querySelector("input:nth-child(3)").value;
alert(val);
best explanation brother but you didn't say about valueOf() method clearly.
Sorry for that
very good sir
Thanks Tanveer :)
@@YahooBaba it was very informative to me
Sir apka JavaScript examples ka video kaha hai? Ek link dijiye
Abhi JS examples ke video nahi banaye hai
@@YahooBaba ok sir , badme please bana Dena, nehi to usage nehi samaj aa raha
Bro can you publish useable projects using javascript html nd css for more knowledge
Plzzzz
Sir google pe kiya likhna he code table ke liye (strry code , astry code )
Kiya ????
ASCII code
nice tutorial
Thanks Yashasvi
codePointAt() please do video on this topic
sure
ty
please give me notes of this please yahoo baba🥺🥺🥺🥺🥺🥺
👌👌👌
one mistake that slice() and subtring() works exactly same. check it
No dear their is difference. Read this article :
www.geeksforgeeks.org/difference-between-string-slice-and-string-substring-in-javascript/
12:31 sir substr not working
I love it
when will you make the video when to use this string methods in real you have said that at the end you will make it till now u have not and make it for the array also.
thanks
❤️
fromCharCode() is not working in my chrome. In cosole I get an error with saying that formCharCode is not a function. What should i do?
Paste ur code here
@@YahooBaba var str="javascript Is a web-designing language";
var a=str.fromCharCode(32);
document.write(a,"");
@@shashankm2861 document.write(a + "");
😁😁😁😁😁
Why do u not use innerHTML
It is just an example Salman.... you can use what ever you like
Instead of document.write()
we can usn con sole.log also
alert too
Sir please html5 or css3 m Jo aap n nhi pdaya wo bhi PDA do
CSS3 mein meine sari properties waise pada di hai , kuch new properties aayi hai abhi 2 - 4 months mein unki video abhi banani hai. .... Toh aap un properties ki abhi itni wait mat karo kyu ki un properties ko abhi sare browser support bhi nahi kar rahe hai aur mere experience se mujhe lagta hai ki abhi un properties ko proper chalne mein 1 se 1.5 year lag jayega.
Sir concat function ma space kasa da
Space aap variable ki value mein he de sakte hai. Starting mein ya end mein like :
var = "Hello ";
var2 = "World";
var a = str.concat(str2);
why the split function remove that word from where we want to split? 8:20
it should be split from that neighter be remove!!!
if anyone knows please clear my concept about that.
Today your video is late I am waiting for your video
Hello Maeenu, video late nahi hua hai .... mein daile 4:00 PM ka schedule lagaya hota hai video publish karne ka. Pure 4 baje video apne aap publish ho jati hai.
@@YahooBaba sir aap Kia Kia sikhaoge Apne channel p or hn please Html5 to poora PDA do
Dost mein JS ke baad jQuery, LESS, SCSS, Bootstrap, HTML5 Canvas, PHP, Android, Ionic, Angular, React, VueJS,Flutter,C++,
Photoshop, Illustrator, 3DMax, .net .......aur bhi bhut kuch.
Sir ap Kitna kamate ho ek mahine Ka ?😂😂
slice or substring me koi b differnce nahi hai
Bhai front se dell back se apple😂😂😂😂😂
sakalaka boom boom
Please pronounce correctly it's a ASCII code not sky code
In programming their is no need of pronouncattention 😄
You aren't giving full elucidation of each string method.
Aila 🙄
Ascii code of small alpha bets
var Alphabets = "abcdefghijklmnopqrstuvwxyz";
for(var i = 0; i
I have also learned from here. Your explanation method is very good sir. Thank you♥️
Thanks and welcome :)
you are great@@YahooBaba
Thank You Sir