top of page
Search
zakariyesahid96

String methods

  • 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

Comentarios


Post: Blog2_Post
bottom of page