Does anyone know an easy way to change a file extension in Javascript?
For example, I have a variable with "first.docx" but I need to change it to "first.html".
question from:https://stackoverflow.com/questions/5953239/how-do-i-change-file-extension-with-javascript