javascript-code.dev
javascript
html
css
jquery
typescript
angular
node.js
reactjs
npm
arrays
Dark
file extension
[1/1]
Alternative Methods for Getting File Extensions in JavaScript
Using the split() method:Split the filename using the dot (.) character. This will create an array of strings.The last element of the array will be the file extension
1