Fidelity Investments Interview Question

The coding challenge was a pig latin game. Convert a sentence into pig latin using JavaScript or TypeScript

Interview Answer

Anonymous

Oct 29, 2024

pigLatin("hello world!") should return ellohay orldway! . It's essentially string manipulation using split(), forEach(), charAt, substring and some concatenation.