get file type javascript code example
Example: javascript get file extension
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"