How to Replace the First Occurrence of a Character in a String in JavaScript

How to Replace the First Occurrence of a Character in a String in JavaScript