DEV Community

Discussion on: 20 Killer JavaScript One Liners ☝️

Collapse
 
manoharreddyporeddy profile image
Manohar Reddy Poreddy

Once I used to use JS to capitalize, and everything else.
Feedback comments came in from Experts
Now I just use the simpler CSS.
Ex: w3schools.com/cssref/pr_text_text-...

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

That doesn't do the same thing, merely changes the appearance of the string on screen - doesn't change the string. Depending on the use case, that could be okay

Collapse
 
manoharreddyporeddy profile image
Manohar Reddy Poreddy

Yes, but that was an example (Ex:) for conversation.
I used to do everything in JS
including building accessible menus, etc
wrote several 100s of lines of code for each.
In CSS, it was always less than 50 each, very easy to change, and by everyone.