Add #34 JavaScript solution