String Methods I - Javascript Made Easy

Опубликовано: 01 Март 2026
на канале: T V Rao
51
like

String Metthods in JavaScript
Adding numbers to string
getting string length - string.length
slicing - string.slice(start,end)
substring - string.substring(start,end)
substr - string.substr(start, length)
replace - string.replace("old","new") only first appeared will be repalced
replace - string.replace(/old/g, "new") replaces all appearnces of old
replace - string.repalce(/old/i, "new") the old text becomes case insensitive
concat - s1.concat(s2) - adds s2 at the end of s1 and a new string is formed
toUpperCase - string.toUpperCase() - entire string is converted to upper case
toLowerCase - string.toLowerCase() - entire string is converted to lower case
padStart - string.padStart(number,character) - adds character at the start
padEnd - string.padEnd(number,character) - adds character at the end

will explain some more frequently used string methods in my next video