12-27-2022, 09:20 PM | #1 |
Registered User
Join Date: Feb 2013
Location: Bangalore
Posts: 1,095
|
Javascript String methods
Slice
Slice extracts a part of a string and returns the extracted part in a new string. The method takes 2 parameters: start position, and end position. Length Returns the length of a string. Replace Replace method replaces a specified value with another value in a string. ToLowerCase & ToUpperCase A string is converted to upper case with toUpperCase. A string is converted to lower case with toLowerCase. Concat Concat joins two or more strings. Trim The trim method removes whitespace from both sides of a string. CharAt The CharAt method returns the character at a specified index (position) in a string.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what is javascript | ehsanagar | Javascript | 6 | 04-18-2017 03:48 AM |
Is String a data type in java? | Kunal | Java | 1 | 03-18-2016 10:46 PM |
How to Implement Interfaces in JavaScript | JavaScriptBank | Javascript | 1 | 03-30-2014 11:48 PM |
Javascript Countdown Timer redirecting Affiliate Links | JavaScriptBank | Javascript | 0 | 05-20-2013 10:29 PM |
65 Free JavaScript Photo Gallery Solutions | JavaScriptBank | Javascript | 0 | 04-15-2013 06:38 PM |