Answers for "a javascr5ipt file name with extension"

1

how to get the extension from filename using javascript

var ext = fileName.substr(fileName.lastIndexOf('.') + 1);
Posted by: Guest on July-13-2020
0

file extension name in js

const path = require('path')

path.extname('picture.png') //.png
path.extname('picture.of.a.dog.png') //.png
path.extname('picture.of.a.dog.jpg') //.jpg
path.extname('picture.of.a.dog.jpeg') //.jpeg
Posted by: Guest on June-19-2021

Code answers related to "a javascr5ipt file name with extension"

Code answers related to "Javascript"

Browse Popular Code Answers by Language