DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+7 =
Submit