Convert an Array to a String

Published by Werdna in

Create a function that takes an array of numbers or letters and returns a string.

Examples

arrayToString([1, 2, 3, 4, 5, 6]) ➞ "123456"

arrayToString(["a", "b", "c", "d", "e", "f"]) ➞ "abcdef"

arrayToString([1, 2, 3, "a", "s", "dAAAA"]) ➞ "123asdAAAA"

Notes

N/A

Watch a quick demo on how Edabit works.