How to split the ending of a file name using JavaScript

javascript get file extension
javascript get filename without extension
javascript get current file name
javascript get file name
javascript get filename from path
javascript split
get file extension from url javascript
javascript extension file name