Technology · Culture · Change
Sign inJoin us
TechTrends NowFollow the next shiftTechnology · Culture · Change
← Latest news

From Dev.to

String methods

1.trim() : let text1 = " hey hi! "; let text2 = text1.trim(); //hey hi! 2.trimStart() : let text1 = " hey hi! "; let text2 = text1.trim(); //hey hi! 3.trimEnd() : let text1 =...

Read the full report at Dev.to ↗