Horje
string substring last 3 and first character Code Example
string substring last 3 and first character


    const String= "As you can see based on the previous"

    //if local 
    const WAFrist = String.substring(0, 9);
    const WALast = String.slice(-9);
    const FullWA = WAFrist + "..." + WALast;

    <p>{FullWA}</p>

    Result 
    As you ca...e previous

	// if data coming from api
	const WAFrist = String ? String.substring(0, 9) : "";
    const WALast = String ? String.slice(-10) : "";
    const FullWA = WAFrist + "..." + WALast;


    <p>{FullWA}</p>

    Result 
    As you ca...e previous




Javascript

Related
blockchain javascript Code Example blockchain javascript Code Example
various elements of jsp document Code Example various elements of jsp document Code Example
customize please select some product options before wordpress message Code Example customize please select some product options before wordpress message Code Example
how to refresh android studio react native Code Example how to refresh android studio react native Code Example
call function javascript from asp net Code Example call function javascript from asp net Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7