Dark Theme

User Registration Form

User Name
Password
Email
String Manipulations: ===================== 1) charAt(): ============ ==> a built-in function in javascript, which accepts an index and return the character at that index. Syntax: string-object.charAt(index); Document ============================== 2) charCodeAt(): ================ 256 characters ==> 0 to 255 ASCII ==> American Standard Code Information Interchange ==> 1-byte Java/Python/JavaScript ==> does support more than 256 characters Ex: java: char ==> 2-bytes ==> 16-bits ==> 65536 chars ==> Unicodes 0 to 65535 char ch = 'a'; ==> charCodeAt() ==> a built-in function can be used to accept an index and return the Unicode value of the character which presents at that specified index. Syntax: str-obj.charCodeAt(index) Document ====================================== Acquiring the part of the string: ================================= "JavaScript" "Java" "Script" slice(): ======== Syntax: str-obj.slice(start-index) ========================== ==> can return group of characters from the specified index (start) to till last character. str-obj.slice(start-index, end-index) ===================================== ==> can return group of characters from the specified index range. Document ==> slice() function can always acquire the part of the string in only forward direction (left to right) Reverse Direction ==> right to left ==> negative index values ==> -1 to -total-number-chars Forward Direction ==> left to right ==> positive index values ==> 0 to tota_chars - 1 substr(): ======== Syntax: str.substr(start-index) substr(start-index, end-index) Document substring(): ============ Syntax: str.substring(start-index) str.substring(start-index, end-index) Document