String Handling:
================
1) String Definition
2) Indexing
3) charAt()
4) toLowerCase()
5) toUpperCase()
at():
====
==> like the charAt(), at() can accept the index
and return the corresponding character of the string.
Syntax:
str-obj.at(index)
at() Vs charAt():
==================
charAt() can allow to access the characters of the string in only forward direction (left to right ) with positive index values.
at() can allow to access the string characters in both forward and reverse direction (using +eve index and -eve index)
================================
slice():
========
"JavaScript"
"Java"
"Script"
==> getting the part of the string is called as "slicing"
Syntax:
======
str-obj.slice(start, end)
==============================================
codePointAt():
==============
C ==> ASCII ==> 256 characters ==> 8-bits ==> 1-byte
Java ==> 2-byte ==> 65536 characters ==> Unicode
Syntax:
str-obj.codePointAt(index) ==> return: the Unicode value for the corresponding character according to the index.
===========================================
substring()
==========
=> substring() is same as slice()
slice() can do the slicing based on the negative index values also.
substring() can replace the negative index value with '0' by default at either start or at end-index.
Syntax:
s.substring(start, end)
=====================================
trim methods:
============
===================================
split()
=======
join()
======
concat()
========