6 kyu
dataTypes String to Array
149emmpak
Description:
You are given a string of numbers, letters and spaces.
Implement the function dataTypes which should return an array of the following three JavaScript data types: Strings, Numbers, Booleans. Each set of charactes which does not contain numbers or spaces should be considered as one string. An exception are the values of True and False which should be evaluated to 'boolean.' See below for some examples.
Examples:
- "You are number 1" // [string, string, string, number]
- "123gjet" // [number, string]
- "truestring1" // [boolean, string, number]
Fundamentals
Strings
Arrays
Regular Expressions
Algorithms
Similar Kata:
Stats:
Created | Nov 11, 2016 |
Published | Nov 12, 2016 |
Warriors Trained | 377 |
Total Skips | 8 |
Total Code Submissions | 1554 |
Total Times Completed | 149 |
JavaScript Completions | 149 |
Total Stars | 12 |
% of votes with a positive feedback rating | 91% of 76 |
Total "Very Satisfied" Votes | 64 |
Total "Somewhat Satisfied" Votes | 11 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |