Javascript Practice Problems: Count Characters in String

preview_player
Показать описание
Welcome to another Javascript Practice Problems for Complete Beginners video where we will discuss solving the problem of "how do we count the number of characters in a string". Luckily, Javascript's objects can easily be used to build up a histogram, so we can solve this with a simple loop and object.

Feel free to leave feedback or ask questions!

Thanks for watching.
Рекомендации по теме
Комментарии
Автор

Great tutorial, keep posting bro.
ps. it will be great if you can zoom the text part and make it bigger in the screen
sublime u can use (ctr+) to zoom in (ctr-) to zoom out

seekknowledge
Автор

Really very useful video, thanks for making such a wonderful video seibert!

venkateshakula
Автор

excellent job bro, keep posting new problems, eagerly waiting for next problem. thanks a lot

PrinceSingh-fhzx
Автор

Awesome teaching dude...one program implemented multiple ways...keep posting more videos...

sathyaramesh
Автор

Please create more algorithms in JavaScript, you are having brilliant teaching skill, thanks a lot in Advance!!

riaganesha
Автор

Whoah, really liked it! Specially the parts about going back and refactoring... Only please embiggen the font size on the editor or zoom in so the code can be seen more clearly, thanks

highcollector
Автор

Hi sir, great tutorial, i have one doubt can you please tell me how can i sort object keys so that they will be in alphabetical order?

YouCanPlayPiano
Автор

Thanks! can you zoom in for future videos?

elysel
Автор

Great tutorial - thank you very much. I'm confused, why are you using const (and not var), please ?

antonsmid
Автор

All brilliant people seem to be left handed ....

sathyaramesh
Автор

Usually ! is outside the conditional such as "! (histogram[ch]) vs (! histogram[ch])". Can someone explain? My guess is it's because inside the for loop he declared the variable "const ch = string[i]" above the conditional "if (! histogram[ch]) { histogram[ch] = 0" so it works I guess? I'm doing a coding bootcamp lol. Still learning :)

nseals
Автор

iam sorry how did you assign histogram[ch] when histogram is empty array?

parvathisachin
Автор

Why should you return histogram at the end of code.please explain very deep

bunnybloods
Автор

try to write smaller and reduce font size.
as we are dependent on screen rather than meditations and telepathy, we should stress our eyes more

pranavanand
Автор

Writing less code as a primary aim by using shortened versions of the code etc. really bugs me sometimes. For the sake of a few extra lines why not do it a slightly longer way and make the code FAR more readable.

bobbysilver
Автор

Not for complete beginners, many intermediate can't solve

govindbisen