top of page
Search

String methods

zakariyesahid96
  • 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.


2 views0 comments

Recent Posts

See All

תגובות


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page