Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get file extension in javascript last index

var extension = fileName.substring(fileName.lastIndexOf('.')+1);
 
PREVIOUS NEXT
Tagged: #file #extension #javascript #index
ADD COMMENT
Topic
Name
6+7 =