DEV Community

Cover image for Day-37 of Coding
Harsh
Harsh

Posted on

Day-37 of Coding

Day 37 – #100DaysofCode

Practiced core JavaScript string methods today:

• slice(), split(), replace(), repeat()
• toUpperCase(), padStart(), padEnd()
• Accessing characters with [] and charAt()

Coming from Python, I still wonder why we have to write .toUpperCase() instead of something simpler like .upper() 🙃

Image description

Top comments (2)

Collapse
 
csm18 profile image
csm

I think its because js was inspired by java! Its syntax resembles much with java.

Collapse
 
harshvdev profile image
Harsh

Oh, I guessed there was some relation between them!