📅  最后修改于: 2022-03-11 14:45:25.492000             🧑  作者: Mango
function createPhoneNumber(numbers){
var format = "(xxx) xxx-xxxx";
for(var i = 0; i < numbers.length; i++)
{
format = format.replace('x', numbers[i]);
}
return format;
}