Junior — Senior
Transforming an array of digits into a phone number
livecode
Task condition
Write a function that takes an array of ten digits (each from 0 to 9) and returns a string representing a phone number in the format "(XXX) XXX-XXXX".
function createPhoneNumber(digits) {
// implementation
}