You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//? To get the file extension from a string repersenting a file name in javascript,you can use the various methods. One common approach is to use the split() method to split the file name based on the dot(.) and then extract the last part of the resulting array.
function getFileExtension(fileName) {
//? Split the file name based on the dot(.) and then extract the last part of the resulting array