Skip to content

Instantly share code, notes, and snippets.

View CSEKU160212's full-sized avatar
💭
Always available, Feel free to contact with me. ☺

MD. ABDUL LOTIF CSEKU160212

💭
Always available, Feel free to contact with me. ☺
  • IDLC Finance PLC
  • Dhaka
  • 14:56 (UTC +05:00)
  • X @lotif13
View GitHub Profile
function getFileExtension(fullFileName){
const extension = fullFileName.split('.').pop();
return extension;
}
function getFileName(fullFileName){
var fileName = fullFileName.substr(0, fullFileName.lastIndexOf('.'));
return fileName;
}