Slice a string : String : Data Type JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Data Type » String »

 

Slice a string



    
<html>
<body>
<button onclick="var myS = new String('www.navioo.com'); alert(myS.slice(4,7));">
SLICE STRING
</button>
<button onclick="var myA = new Array(10,11,12,13,14,15,11,12,13,14); alert(myA.slice(1,3));">
SLICE ARRAY
</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Data Type
» String