replace - How to trim a file extension from a String in JavaScript?

Published --