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() 🙃
Top comments (2)
I think its because js was inspired by java! Its syntax resembles much with java.
Oh, I guessed there was some relation between them!