Write a function that maps files to their extension names javascript code example
Example: how to get file extension in javascript
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"