javascript : String.right

 

javascript : String.right(n)


Target:

Applicable with String Data Type.


Description :

return last n number of charector from string.



Syntax:

String.right(n)


Usase:

  1. "abcdefghijklmnopqrstuvwxyz".right(7)
    It return string "tuvwxyz"



Download MYJS.js

MyJs is a collection of java script extension methods that enhances the JavaScript objects, class object, DOM element, domElementsCollections, Date, String, Number and other data type. 

Include in you project landing page (master page) and it will extends your DOM and JavaScript Objects.

Comments

Popular posts from this blog

javascript : String.left

javascript : .nextAll()