top of page
Search

String methods

  • zakariyesahid96
  • Jan 28, 2022
  • 1 min read
  • Methods are built on actions, Perkins with individual strings.

  • They help us do things such a:

  1. searching within a string

  2. replacing part of a string

  3. changing the casing of a string

  • Can also be combined, the syntax is thing.method[].

  • Trim is used to trim off any space at the start or ending of a string.

  • Can also chain on two strings for example :

greeting

“hello again ”

greeting.trim().uppercase ()

“Hello Again”

  • Lots of info to take in but overall a good lesson.


 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page