file extension

[1/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