get the file extention in vue 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"