Sir what kind of teacher u r Aapne JS itne ache se padhaya h ki mere class me jinko JS me koi doubt hota h wo mujhse puchte h All credit goes to u sir I just love ur teaching style U r my role model sir
@@honblegaurav9917 Firstly it's a primitive data type and when assigned, a copy of the value is created and stored in memory (Stack). and secondly you're changing the copy of that not the original one. For more, watch 10th video of this playlist (previous one) stack and heap memory.
@@honblegaurav9917 new String('sahbaz') creates an object, not a primitive string. In JavaScript: When we use new String('sahbaz'), it creates a String object. This is an object wrapper around the primitive string "sahbaz".
I was working on my sideProject meanwhile when i just saw ur video, I paused my work and watched ur video, because I know ur video always add value to me, Thankyou very much sir ji !
In literal terms, your teaching prowess is nothing short of astounding. Even for someone like me, residing in a remote corner of the world, the wealth of knowledge I can glean from your guidance is boundless.
Simple, straightforward, to the point what a tutorial, these kind of tutorial remain in mind for long time and strengthen basics which is most necessary
Best Practice: Use String Interpolation for concatenating. let rating = 'one' `Chai aur code is number ${rating} channel` // Chai aur code is number one channel Video to failega hi sir, this is surely going to be the platform for every developer. Thanks again for such a simplified explanation. really enjoying learning.
Slice ma thori ghalti krdi apna -8 will bring you to index 1 position and than you slice 3 charactor after it so you get "ite". thanks for lovely tutorial
Old way: Let a = name Let b = age let a = prompt("What is your name"); let b = prompt("What is your age"); document.write("My name is " + a + "and i am " + b + "years old") New way: let a = prompt("What is your name"); let b = prompt("What is your age"); document.write(`Hello my name is ${a} and I'm ${b} years old `); We use ` ` to write complete string and will use ${} to inject variables in it.
but one thing Hitesh sir, your voice pitch and the way of clearing the little things is amazing ,i'm learning from this platform and addicted as well, not only with JavaScript but with the way you're teaching too ,i hope i will learn a lot from you ,thank you from INDIA(BIHAR ). sonal~~
Thank you for making such a beautiful javascript tutorial. Because You teach the actual javascript which is necessary for actual production development need. Very Very thank you. I will share your channel as much as possible to everyone. I really like your teaching style and I aslo need that type of javascript teacher. God bless you.
hello sir, I am from Pakistan I have no knowledge about coding, but I want to learn, I watch your html playlist, CSS tailwind playlist and now I am watching JavaScript.
In JavaScript, you cannot traverse from a higher negative index to a lower negative index using the slice() function or any other standard string method. The slice() function, as well as most other string methods, expects the start index to be less than the end index when using positive indices or zero-based indices. When using negative indices, you can only traverse from left to right (from lower negative index to higher negative index) or from right to left (from lower positive index to higher positive index). You cannot reverse the start and end indices when using negative indices with slice(). const myString = "Hello, World!"; const slicedString = myString.slice(-1, -8); console.log(slicedString); // Output: " " const myString = "Hello, World!"; const slicedString = myString.slice(0, 5); console.log(slicedString); // Output: "Hello" const slicedStringNegative = myString.slice(-6, -1); console.log(slicedStringNegative); // Output: "World"
Very practical, Application oriented simple explanation ,This seems different to me ..I hope you will make more useful videos.. -best wishes and_Thank You.
original string is gameName and when you change gameName to uppercase, then the original gameName still becomes the same because first value gets stored in stack and only copy value changes. Please see the previous lecture of datatypes summary(primitive and non-primitive) to understand.
Here is the all important methods of String let s = new String("Chhaya"); // here string s is an object console.log(s.toLowerCase()); // in lowecase console.log(s.toUpperCase()); // in uppercase console.log(s.indexOf('y')); // return index from beginning console.log(s.lastIndexOf('a')); // return index from ending position console.log(s.length); console.log(s.slice(0,4)); //print string from 0th index to 3rd index as ending index is excluded console.log(s.substring(0,4)) // Similar to slice but can't take negative value as an argument console.log(s.charAt(1)); //print char present on given index value console.log(s.includes("Chha")); //If given input present then return true otherwise false console.log(s.includes("shaya")); // return false console.log(s.endsWith("aya")); //return true if string is found from last let url = "www.userid?20.com" console.log(url.replace('20', '-')); //replace 20 with underscore let word = "Chhaya is Shanaya and she is a baby girl"; console.log(word.split(" ")); // return all the words from given string in the form of array let name = "Shanaya" console.log(name.concat(" Gupta")); //return String after appending given string let remSpace = " good bye guys " console.log(remSpace.trim()); // return string after removing unwanted space from beginning and ending but not from mid
at 9:18 sir stack par jab value create create ho to phr value ki copy milti ha but yhan to copy mil rahi ha r yeh ha bhi object type (heap based creation) How ? kindly explain
Thoda late night ho gya aaj but important ye ki video aa gyi. Series to complete hoke hi rhegi 😎
Thank you Sir par mujhe need aa rahi hai ise video ko main subha dekhu ga ❤️
Thank you for your time sir,, 💞
Thank u sir❤️😻
Better✨ than paid video..pw😁
Thankyou sir 👍
Sir what kind of teacher u r
Aapne JS itne ache se padhaya h ki mere class me jinko JS me koi doubt hota h wo mujhse puchte h
All credit goes to u sir
I just love ur teaching style
U r my role model sir
9:21 pe original value change kyu nhi hui hai? new String to ek object hai na? jo ki non primitive data type hai?
@@honblegaurav9917 Firstly it's a primitive data type and when assigned, a copy of the value is created and stored in memory (Stack). and secondly you're changing the copy of that not the original one.
For more, watch 10th video of this playlist (previous one) stack and heap memory.
@@TechieHeish1-bm2nd when you define using new its a non primitive data type bro. sir didn't tell this. check internet or stack overflow
@@honblegaurav9917 Exactly my question! why did it not changed?
Got it! it is non primitive when define using new String(). String is an object
@@honblegaurav9917 new String('sahbaz') creates an object, not a primitive string.
In JavaScript:
When we use new String('sahbaz'), it creates a String object. This is an object wrapper around the primitive string "sahbaz".
It is a humble request to all of you, don't skip the ad, hitesh sir is doing so much for us, we can at least see the ad of 30 seconds.
Don't worry, app sikh rhe, yahi bht h. Bs share krte rho series ko. Best mai bna dunga
@@chaiaurcodeThank you so much sir for providing this quality content
@@chaiaurcode ma tum aur aik cup chai from Pakistan. hahaha
mera toh premium hau yt mai kiya karu bhai 🙂🙂🙂🙂
@@Filmy_world_officialwow
I was working on my sideProject meanwhile when i just saw ur video, I paused my work and watched ur video, because I know ur video always add value to me, Thankyou very much sir ji !
It took me whole 5 minutes to find where are backticks on keyboard 😂😂 Afterall amazing tutorial sir >>
same brother
Coding tere bass ki nahi hai rahne de
@@ashutosh6740 negative aadmi
2
In literal terms, your teaching prowess is nothing short of astounding. Even for someone like me, residing in a remote corner of the world, the wealth of knowledge I can glean from your guidance is boundless.
itni angrezi chodke kya sabit karna chahte ho
Simple, straightforward, to the point what a tutorial, these kind of tutorial remain in mind for long time and strengthen basics which is most necessary
Best Practice:
Use String Interpolation for concatenating.
let rating = 'one'
`Chai aur code is number ${rating} channel` // Chai aur code is number one channel
Video to failega hi sir, this is surely going to be the platform for every developer. Thanks again for such a simplified explanation. really enjoying learning.
Slice ma thori ghalti krdi apna -8 will bring you to index 1 position and than you slice 3 charactor after it so you get "ite". thanks for lovely tutorial
A point that should be noted from the video is when sir said that ,"Strings are the most powerful in any programming language".
@chaiaurcode
Const count = ( apna_naam )=>{
return apna_naam.times()
}
Count(apna_naam) > Count(dusaro_ka_naam) ? "Hitesh bhai 😂" : "aam janta 😂" ;
Thankyou Hitesh bhai for you dedication towards teaching us 😊.
I know that you are the best teacher but if you continue like this you will be great teacher 👍👍
Crazy explanation understand everything 👍🏻👍🏻👍🏻👍🏻 thanks sir...
"Master strings in JavaScript with this clear and concise tutorial. Great for beginners!"
Sir i watched many of youtube tutorials of JS but you Playlist of Js is the best ever ... thank you soo much sir love from pakistan
Old way:
Let a = name
Let b = age
let a = prompt("What is your name");
let b = prompt("What is your age");
document.write("My name is " + a + "and i am " + b + "years old")
New way:
let a = prompt("What is your name");
let b = prompt("What is your age");
document.write(`Hello my name is ${a} and I'm ${b} years old `);
We use ` ` to write complete string and will use ${} to inject variables in it.
String interpolation
but one thing Hitesh sir, your voice pitch and the way of clearing the little things is amazing ,i'm learning from this platform and addicted as well, not only with JavaScript but with the way you're teaching too ,i hope i will learn a lot from you ,thank you from INDIA(BIHAR ). sonal~~
Thanks for the Video sir .Depth knowledge means Chai aur Code😌
"Chai aur Code deserves all the appreciation for making JavaScript accessible and fun!"
Give me ur num
sir aapka concept or smile unique hai (Tq Sir)
Sir this javascript course is of higher quality than paid course. Do the same, we will support you.
all i can do is thank you for providing these amazing contents💛💛💛
sir Good job sir very intersting lecture Thank you so much sir next video i am wating next lecture
thankyou sir na aap humko jante na hum apko lakin fir bhi aap hamare lia video bnate iska fal apko zarur milega thankyou once again
Awesome 👍
Thank you for making such a beautiful javascript tutorial. Because You teach the actual javascript which is necessary for actual production development need. Very Very thank you. I will share your channel as much as possible to everyone. I really like your teaching style and I aslo need that type of javascript teacher. God bless you.
Behad Behtareen,
Best video on strings in javascript 😍
best javascript video I have ever seen
Day 3 continuing. Love you sir ji for this amazing content.
vai aap chai bolke pani kiu dikha rha ho..........0:02
hello sir, I am from Pakistan I have no knowledge about coding, but I want to learn, I watch your html playlist, CSS tailwind playlist and now I am watching JavaScript.
In JavaScript, you cannot traverse from a higher negative index to a lower negative index using the slice() function or any other standard string method. The slice() function, as well as most other string methods, expects the start index to be less than the end index when using positive indices or zero-based indices.
When using negative indices, you can only traverse from left to right (from lower negative index to higher negative index) or from right to left (from lower positive index to higher positive index). You cannot reverse the start and end indices when using negative indices with slice().
const myString = "Hello, World!";
const slicedString = myString.slice(-1, -8);
console.log(slicedString); // Output: " "
const myString = "Hello, World!";
const slicedString = myString.slice(0, 5);
console.log(slicedString); // Output: "Hello"
const slicedStringNegative = myString.slice(-6, -1);
console.log(slicedStringNegative); // Output: "World"
Thank you king, for the clarification 🫡🫡
Hitesh sir on fire 🔥🔥
Back to back videos
Sir Chai or NEXT JS start krain na please apka method bhot Acha hai feels like premium course 💙💜
hitesh bhaiyya aap chai dikha kr pani pi lete ho lekin hm logo ka dil chai pe atak jata hai .
3:55 its not string interpolation its know as template literals
Aapka Video dekhne ke liye bhi "Chai" chahiye hi sath me, akele chai pite ho to yaad aa jati hai chai ki☕
Chai to zruri h ji
lov your teaching method
great video
Code to yaha hai Par Chai 😂 kaha hai Thanks sir padne mai mja aaya
very conceptual video sir
Strings are immutable in JS so those methods return a copy of that string after performing operation.
It seems like sir is standing while recording it . Great Content🙏
Thank you so much sir for this wonderful lessons.
great sir
Thank you Sir for this awesome tutorial :)
I love the way of your teaching sir ❤❤
thank you bhaiya bohot easily samajh aarha h🙂🙂😇
best string methods video
SIR LAJVAAB MAJJA AA GAYA
awesome teaching style and very simple way to teach. thank you very much
Sir ap mazeed bhi courses ly kar aye apka bhot vip hai hindi main ❤❤❤ main regular follow karta ho
Strings methods are very important , practiced, Following.
Best playlist ever !
Excellent
Keep going on I love your content. And I highly appreciate your hardwork.
Very practical, Application oriented simple explanation ,This seems different to me ..I hope you will make more useful videos.. -best wishes and_Thank You.
sir please upload more videos , I really enjoying your content, and I have subscribed the channel
woww, didnt know learning js is that simple, damn
Sir please explain this topic once more, with more examples
very nice sir from Bangladesh
sir your making Javascript simple
great Content
Thaks sir! Very helpful and informative video
sir in replace condition if the string is "sukhmun" and i have to replace the 2nd 'u' with 'a' how we do that
sir maja to aya, a manna padega
nice sir
sir you are great teacher
Pretty easy way sir
The best video on String I've ever come across.
keep up the good work..
This video was very interesting
What a beautiful tutorial!
Thank you very much sir for your beautiful effort.
thanks again.
🙏🙏🙏🙏🙏🙏🙏
Interesting lecture, thank you sir
Thanks for all your efforts🥰
par glass mai to paani tha chai nahi😂😂.......jk, love u sir
very well explained
nice
Amazing video sir!!
Ye to paani hai 😮😮😮😮😮😮😊😊😊😊😊
really great content
3:47 variable inject is not working its print like nnksjcnjsn ${hsicjhh} ksjicjicoc
same
Thank you sir for this video it's very helpful for me
This man is ❤❤❤
chai or code
Congratulation SIR for #300k subscriber
09:08 what is original string here i am a little confused can someone please explain?
original string is gameName and when you change gameName to uppercase, then the original gameName still becomes the same because first value gets stored in stack and only copy value changes. Please see the previous lecture of datatypes summary(primitive and non-primitive) to understand.
@@PrabeshPB but new String to object hai na sir ne khud hi to bola? to fir vo stack me kyu store ho rha? vo to non primitive data type hai
Nice
Kindly consider creating a TypeScript series in Hindi as well
Here is the all important methods of String
let s = new String("Chhaya"); // here string s is an object
console.log(s.toLowerCase()); // in lowecase
console.log(s.toUpperCase()); // in uppercase
console.log(s.indexOf('y')); // return index from beginning
console.log(s.lastIndexOf('a')); // return index from ending position
console.log(s.length);
console.log(s.slice(0,4)); //print string from 0th index to 3rd index as ending index is excluded
console.log(s.substring(0,4)) // Similar to slice but can't take negative value as an argument
console.log(s.charAt(1)); //print char present on given index value
console.log(s.includes("Chha")); //If given input present then return true otherwise false
console.log(s.includes("shaya")); // return false
console.log(s.endsWith("aya")); //return true if string is found from last
let url = "www.userid?20.com"
console.log(url.replace('20', '-')); //replace 20 with underscore
let word = "Chhaya is Shanaya and she is a baby girl";
console.log(word.split(" ")); // return all the words from given string in the form of array
let name = "Shanaya"
console.log(name.concat(" Gupta")); //return String after appending given string
let remSpace = " good bye guys "
console.log(remSpace.trim()); // return string after removing unwanted space from beginning and ending but not from mid
Thank
Thanks
Good job sir
Thank you so much sir ❤
at 9:18 sir stack par jab value create create ho to phr value ki copy milti ha but yhan to copy mil rahi ha r yeh ha bhi object type (heap based creation) How ? kindly explain
reference mil raha hai bhai memory ka copy nhi mil rhi
Bhai Bhai Bhai ese av tak kisi n nhi padaya even mene bhut javascript k videos dekhe but you are the best.
Best
originial value change nhi hua hai cause wo stack memory mai store hai and usmai ek copy ko pass kiya jata hai direct referen ce ko nahi
Thank you sir❤
truly sir apke lecture enjoyable hote hai time ka pta ni lagta .......thank you sir
Thank you sir :) please try to upload more videos in less time