6 kyu
Create Phone Number
127,918 of 352,747xDranik
Description:
Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number.
Example
createPhoneNumber([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]) // => returns "(123) 456-7890"
The returned format must be correct in order to complete this challenge.
Don't forget the space after the closing parentheses!
Arrays
Strings
Regular Expressions
Algorithms
Similar Kata:
Stats:
Created | Oct 17, 2013 |
Published | Oct 17, 2013 |
Warriors Trained | 599964 |
Total Skips | 48276 |
Total Code Submissions | 812452 |
Total Times Completed | 352747 |
JavaScript Completions | 127918 |
CoffeeScript Completions | 334 |
Ruby Completions | 9151 |
Java Completions | 39845 |
Dart Completions | 2124 |
Haskell Completions | 1817 |
C# Completions | 22868 |
Python Completions | 116378 |
Scala Completions | 968 |
Groovy Completions | 158 |
Crystal Completions | 67 |
PowerShell Completions | 318 |
Go Completions | 4631 |
C Completions | 4577 |
NASM Completions | 63 |
Rust Completions | 3293 |
PHP Completions | 6675 |
Clojure Completions | 408 |
C++ Completions | 14312 |
Julia Completions | 170 |
CFML Completions | 43 |
Factor Completions | 20 |
F# Completions | 99 |
COBOL Completions | 38 |
Lua Completions | 340 |
TypeScript Completions | 4291 |
BF Completions | 53 |
Total Stars | 3778 |
% of votes with a positive feedback rating | 85% of 28462 |
Total "Very Satisfied" Votes | 20974 |
Total "Somewhat Satisfied" Votes | 6542 |
Total "Not Satisfied" Votes | 946 |