Bhai please make a complete course on node js too 😍😍😍😍 We will be so much happY harry Bhai How many peoples want this Hit the like like to know harry about this 💓💓💓💓💓💓💓👇❤❤❤
To avoid empty string, new lines, spaces in counting words and char use this {text.trim().length } characters {text.replace(/ /g, " ").split(' ').filter(value => value != "").length} words
Harry Bhai you are Awesome. Watching Videos from Pakistan Seriously You are doing this great Job free of cost for us If you are here, so we don't have to go to any Institue 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
{text.trim() === ""?0 : text.trim().split(" "). length) words Sorry but I found a small bug here. So adding my solution. But your logic was awesome. Thank you 😊.
What i learned from this video also... 1. Extra features to previous mini-project such as Text summary More importantly Time to read the text is quite important for me because i saw this feature in hashnode blogging side and i didn't know how it was done previously.. But now I am clear now! i.e done by calculating avg time to read a word i.e normally 300 wpm for one word it takes 60/300=0.2 minutes Time to read the whole text=(0.2*No of words ) Min :)
Thank you sir . I was really upset for reactjs to understand as I am student of Computer science but after watching your videos I learn a lot . After watching your tutorial I am sure I can perform best once again thank you
Really felt nervous while starting this course but glad till here its was amazing and felt really really happy by seeing my textutills app though it was done by seeing your video.Thank you Harrry bhaiya.
Video is awesome ❤ too much informative BUT I GUESS - THERE ARE 2 PROBLEMS. If we give many spaces simultaneously then also word count is increasing and also if we go to next line and type word and again go to next line and type one word then it's not counting. Please help with it. If anyone noticed this , like it or reply so that Harry might look into it 👍🏻👍🏻
Solution for the task at 11:54 for adding more logic to word counter: {text.split(" ")[text.split(" ").length - 1] == "" ? text.split(" ").length - 1 : text.split(" ").length} words and {text.length} characters
For the algorithem. Altho i bought a course on udemy before this course started but i know harry bhai's the best. So im liking and commenting on every video for the algo.
Bhai please make a complete course on node js too 😍😍😍😍 We will be so much happY harry Bhai How many peoples want this Hit the like like to know harry about this 💓💓💓💓💓💓💓👇❤❤❤
Here is a solution I came up with the words problem: So what we do is make an arrow function that will calculate the words, you can also do this in the jsx but to make the code more readable it is suggested to do it like this. {calculateWords()} words and {text.length} character {calculateWords() * 0.008} Minutes to read You have to place the function where you places rest of the functions (handleUpClick, handleLoClick etc ) The function: const calculateWords = () => { let numOfWords = 0; let words = text.split(" "); let length = words.length; numOfWords = words[length - 1] === "" || words[length - 1] === " " ? length - 1 : length; console.log(words); return numOfWords; };
Thank you for such an amazing tutorial Harry bhai😇! Suggestion to count words properly.(Omitting empty string, omitting stop sign(.) ) 1)In JSX : {wordCount(text)} words and {text.length} characters. 2) Creating a function wordCount: const wordCount = (value) => { return value.replace(/\./g, '') .split(' ') .filter(str => { return str !== '' }) .length; }; I hope this helps alot to those sceptical about accuracy!!
This code is working better than above as your code is not counting any word after pressing enter key.. const wordCount = (text) => { return text.replace(/ /g, " ") .split(' ') .filter(text => text !== "") .length };
I would comment in every video till you don't reply. I am really thankful to you. I didn't have cs in 12th but learned programming c and CPP from your videos and still learning. Moreover, I got a confidence boost. Once again thank you for your efforts.
text.split(' ').filter((x) => x !== '').length can be used to calculate total words, it removes continuous space which is not a word still count a word. THis removes empty string from the array and return the length of it.
You are really on 🔥 moj kardi Thank you for working really hard for us. This course is helpful. Agar app Galti se bhi 4 video dalta ho aj ,mein pagal ki tahara nachangua. 🥳
If you want to show 0 words in the start and character counting without spaces here's the code for you : {text === '' " ? 0 : text.split(" ").length} words and {text.replace(/ /g ,"").length} characters
brother please try to keep all the ads at the beginnin or at the end ...it is such a distraction to the wonderful content that you are sharing for free of cost....hats off dada.
To get accurate numbers of words, create a variable: let word = text.split(" ").length - 1. Use it like this = {word} Words, {text.length - word} Characters
I learned and did the following things from this videos: i. Added features like preview of the text, counting words and characters Counting the average read time and converting the texts to the lower case.
in the split method, at the starting it shows one word even if you don't enter and after we add a space it just increases the number of words even if we do not write anything
For optimal learning, make sure to access, save and bookmark this playlist now: ua-cam.com/play/PLu0W_9lII9agx66oZnT6IyhcMIbUMNMdt.html
Django channels videos
Thanks
Bhai please make a complete course on node js too 😍😍😍😍
We will be so much happY harry Bhai
How many peoples want this
Hit the like like to know harry about this 💓💓💓💓💓💓💓👇❤❤❤
buka buka boom boom
harry bhai correction : precise time calculation k liye 0.01 use hota h ..
And thanks for all your tutorials.
3 videos in one day. Harry is on fire
4 aa gyi 😅 🔥
yes my friend
3 videos in a one day... this course is awesome thank you so much❤️
10 videos in one day
0:00 epic start 🔥
To avoid empty string, new lines, spaces in counting words and char use this
{text.trim().length } characters
{text.replace(/
/g, " ").split(' ').filter(value => value != "").length} words
Thanks I was looking for it
read time increasing with empty cursor moving, how can I fix that
@@anjalichauhan5169 {0.008 * text.trim().length}
@@anjalichauhan5169 {0.008 * text.replace(/
/g, " ").split(' ').filter(value => value != "").length}
@@aash1r869 mera uper case and lower case honeke baad vanish ho ja rha h.. sentences.kya karu???cmmnt me plz!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Harry Bhai you are Awesome.
Watching Videos from Pakistan
Seriously You are doing this great Job free of cost for us
If you are here, so we don't have to go to any Institue
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
{ text==="" ?0 :text.trim().split(" ").length} words, {text.length} characters
removes extra trailing space
this was what we want
Thankkkkk youuuuuuu so muchhhhhhhh
@@raghisasultan1680 Welcome #goodOldDays
{text.trim() === ""?0 : text.trim().split(" "). length) words
Sorry but I found a small bug here. So adding my solution. But your logic was awesome. Thank you 😊.
00:01 What A Start Bro,o I Can't Stop My Laughing (Boom Boom Guys )🤣 And...And...And That Was Unique Dialogue On 00:10
🤣🤣🤣🤣
i repeated that 1 sec almost for 20-30 times 😂😂😂😂😂😂😂😂
What i learned from this video also...
1. Extra features to previous mini-project such as Text summary
More importantly Time to read the text is quite important for me because i saw this feature in hashnode blogging side and i didn't know how it was done previously.. But now I am clear now!
i.e done by calculating avg time to read a word i.e normally 300 wpm
for one word it takes 60/300=0.2 minutes
Time to read the whole text=(0.2*No of words ) Min
:)
Booka booka boom boom
300 words/60 seconds = 5words/second
Or
300 words/minute
1 word/ (1/300)minute
=1 word / 0.0033 minute
Harry bhai is on 🔥🔥🔥 today..
harry sir you re teaching is amazing..bahot hi acha sikhate ho app...jara bhi tuff or boaring nahi lagata...
Thank you sir . I was really upset for reactjs to understand as I am student of Computer science but after watching your videos I learn a lot . After watching your tutorial I am sure I can perform best once again thank you
Iss speed se to 2 week me hi complt ho jyga... React😎😎..... Thxxx Harry bhai ❤️❤️❤️
Yes
Really felt nervous while starting this course but glad till here its was amazing and felt really really happy by seeing my textutills app though it was done by seeing your video.Thank you Harrry bhaiya.
Harry bhai i am inserting css in between, bcz its making it super beautiful!!!!, i already completed your HTML,CSS,JS course 😀😀
11:53 For Remove space Counting in words 😁
{text.split(/[^\s]+/).length} words, {text.length} characters
Text.split(" ").length - 1
Day by day I'm loving react js. Everything for you ❤️
Video is awesome ❤ too much informative BUT I GUESS - THERE ARE 2 PROBLEMS. If we give many spaces simultaneously then also word count is increasing and also if we go to next line and type word and again go to next line and type one word then it's not counting. Please help with it. If anyone noticed this , like it or reply so that Harry might look into it 👍🏻👍🏻
You could've just added "Enter text here" as placeholder inside tag instead of removing it. BTW it's really nice course.
i hve tried it and it wont work cuz we need to pass the value (variable)so that the handleChange function would change it to current text as we type
he could have but for the purposes of teaching state functions he didnt
Oh I see, I guess you don't understand what I was trying to say.
@@abhayjagtap4310 ohh my bad
Ig ik what you had said but I wasn't able to explain that clearly
At 11:33
Word count = {text.split(" ").length - 1} try it Harry bhai ❤️
yes bro it is correct
Solution for the task at 11:54 for adding more logic to word counter:
{text.split(" ")[text.split(" ").length - 1] == "" ? text.split(" ").length - 1 : text.split(" ").length} words and {text.length} characters
thanks buddy
seriously u r awesome.....itni bdiya tarike se props aur state samjh aaya hai .... aur ajki video mai jo logics bataye aapne :)
Words count : {text.split(" ").filter(wrd => wrd).length}
This will not work if we press enter and type again..
For the algorithem. Altho i bought a course on udemy before this course started but i know harry bhai's the best. So im liking and commenting on every video for the algo.
I created my First React Application Thank you so much harry Bhai ❤
Harry bhai is on fire, 3 videos in a day
Bhai please make a complete course on node js too 😍😍😍😍
We will be so much happY harry Bhai
How many peoples want this
Hit the like like to know harry about this 💓💓💓💓💓💓💓👇❤❤❤
Here is a solution I came up with the words problem:
So what we do is make an arrow function that will calculate the words, you can also do this in the jsx but to make the code more readable it is suggested to do it like this.
{calculateWords()} words and {text.length} character
{calculateWords() * 0.008} Minutes to read
You have to place the function where you places rest of the functions (handleUpClick, handleLoClick etc )
The function:
const calculateWords = () => {
let numOfWords = 0;
let words = text.split(" ");
let length = words.length;
numOfWords =
words[length - 1] === "" || words[length - 1] === " "
? length - 1
: length;
console.log(words);
return numOfWords;
};
Thank you so much this code help me alot😇
let words = text.trim().split(" ");
replace works for empty spaces
12:00 {Text.trim().split(" ").length} words
0:00 Harry Bhai is awesome 😎😎😎
Booka booka boom boom 💥😂
for removing that 1 word from default value
{text.split(" ").length} words and {text.length} characters
remove the space btw the(" ") make it ("") 😊
Thank you for such an amazing tutorial Harry bhai😇!
Suggestion to count words properly.(Omitting empty string, omitting stop sign(.) )
1)In JSX : {wordCount(text)} words and {text.length} characters.
2) Creating a function wordCount:
const wordCount = (value) => {
return value.replace(/\./g, '')
.split(' ')
.filter(str => { return str !== '' })
.length;
};
I hope this helps alot to those sceptical about accuracy!!
thanx
you missed the case when new line is used like
hi
there
its 2 words but showing 1 word only using your code
@@varngupta1695 replace(/\./g, '') use this>> replace(/
/g, '')
This code is working better than above as your code is not counting any word after pressing enter key..
const wordCount = (text) => {
return text.replace(/
/g, " ")
.split(' ')
.filter(text => text !== "")
.length
};
@@LucknowiMohit Yes, Now this seems better. Thanks for optimising the code
Buka buka boom boom harry bhai🤣🤣🤣🤣😆
Today is my Birthday harry bhai...and your react course is the best gift for me.
I would comment in every video till you don't reply. I am really thankful to you. I didn't have cs in 12th but learned programming c and CPP from your videos and still learning. Moreover, I got a confidence boost. Once again thank you for your efforts.
text.split(' ').filter((x) => x !== '').length
can be used to calculate total words, it removes continuous space which is not a word still count a word.
THis removes empty string from the array and return the length of it.
Great!
bda jldi jldi videos aa rhe harry bhai 😂❤
what a appalling start harry bhai😄
*buka buka boom boom* Harry bahi 😉
Just wondering how many people gave up REACT. Number came down from 2.1M to 289k from 1st video to merely 8th video.
BOOKA BOOKA BOOOM harry bhai.
This react Course is very very helpful
Thank you Harry bhai
You are really on 🔥 moj kardi
Thank you for working really hard for us.
This course is helpful.
Agar app Galti se bhi 4 video dalta ho aj ,mein pagal ki tahara nachangua. 🥳
Mast playlist Harry Bhai mast jakas ,bole to fadu ❤🎉
Intro of this video is Exceptional Harry Bro
Hats off to Harry
9 ghante me 4 videos.. Harry Bhai is on another level.
I felt so confident when I wrote to lower case myself before this video by following the previous video
This react course is very helpful... You deserve trillion likes... hahahahahhahah
love you harry Bhai its my starting to learn a react and I enjoying your toturial
If you want to show 0 words in the start and character counting without spaces here's the code for you :
{text === '' " ? 0 : text.split(" ").length} words and {text.replace(/ /g ,"").length} characters
{text.spilt(" ").length - 1}
@@zenshiriz1210 you solved my doubt brother Thanks a lot ❤❤
React Hooks must be called in a React function component or a custom React Hook function
No. 1 series Harry Bhai
this course is awesome thank you so much Harry Bhaii❤️
Booka Booka BOOM BOOM! Harry bhau.....Best react course 🔥
I am you subscriber since the start of your channel. Just appreciate your effort❤️❤️.
These days you are making very awesome videos👌👌
Very happy that I built a small word converter by myself
brother please try to keep all the ads at the beginnin or at the end ...it is such a distraction to the wonderful content that you are sharing for free of cost....hats off dada.
Buka buka boom boom .. already loving this course
12:12 Quick fix
{text.split(' ').length - 1} words
Then what about time?
@Prathamesh Thakur Thank You :)
@@sanketghule3648 What time are you talking about?
Are see when we add that 0.008 * text.split(""). length we get 0.008 time to read on main screen when there are no words in it
@@sanketghule3648 {Math.floor((0.008 * text.split(' ').length)/3)} Min read
hope this works
Thanks soooooo much.... This React course is super helpful
Harry on fire after a couple of months 3 videos in one day
To get accurate numbers of words, create a variable: let word = text.split(" ").length - 1. Use it like this =
{word} Words, {text.length - word} Characters
Just Enjoying this course....Thank You Sir....
If above logic is not working for count of words and character u can use like this: {text.split(/[^\s]+/).length-1} words and {text.length} characters
Clever!
harrybhai ye clg se accha to aap sikhate ho....Thnaks HarryBhai
This is very very helpful video sir jiii♥️
I learned and did the following things from this videos:
i. Added features like preview of the text,
counting words and characters
Counting the average read time and
converting the texts to the lower case.
Buga buga boom boom sir! Thanks for making such a great video for us sir!
Best Lesson Harry. Your are Love..
New playlist for Django ERP system
{text.trim().split(" ").filter((e) => e !== "").length} - my logic for counting words
Wrong logic as it is counting -1 words..
To avoid empty string count as a word just simply write
{text.split(" ").length - 1} words {text.length} characters
{0.008 * text.split(" ").length - 0.008} Minutes read
yes you are correct but the word count will only increase when you will press the space and that is not good user experience
@@parvmangal8898 yes, you are correct.
The above one is just for instant solution.
This course is very very awesome harry bhai ☺☺☺
Great Job Bro. You are on 🔥🔥🔥
Aishe hi video dal te raho ❣️❣️❣️ take ❣️ from BD
Booka booka boom boom was unbeatable😂❤❤
Great series for beginners😊
Booka booka boom boom Harry bhai 🙋♂️
Great Video Harry Bhai The concepts got cleared!
amazing work bro, really appreciable
AMAZING BRO
.
shantanu singh
1 second ago
Use placeholder="enter text here" in to avoid removing text before typing
in the split method, at the starting it shows one word even if you don't enter and after we add a space it just increases the number of words even if we do not write anything
We can add more logic to it can't we?
best react course ever 🥰🥰🥰🥰🥰🥰😘😘
enjoying learning react from you
bhut zabardast bro thankyou so much for giving us a such good information in a best way
This course is Very helpful....Thankyou very much sir
East or west Haris bhai is the best🎉
sir i am your big fan and i hope Your good student
The way you say "And I will see you next time......" 😌😌
Only few can complete this course 🎉🎉
Sir I have a query that " mere text box me words write nhi ho rhe h.." to mai kya kru ? Mujhe smjh nhi arha ... Please smjha diziye ! 😢
Daymnn khatarnakhhh💥💥💥
12:13 Better to use trim() before split()
Yaay completed this video🎉
love your xplaination and njoying too:)
bhai shaheb maza aa gya........ thanku bro
sir ma nay ap ke bootstrap ke video daki ha is very healtful 😍