6 kyu

dataTypes String to Array

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

Stats:

CreatedNov 11, 2016
PublishedNov 12, 2016
Warriors Trained377
Total Skips8
Total Code Submissions1554
Total Times Completed149
JavaScript Completions149
Total Stars12
% of votes with a positive feedback rating91% of 76
Total "Very Satisfied" Votes64
Total "Somewhat Satisfied" Votes11
Total "Not Satisfied" Votes1
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • emmpak Avatar
  • smile67 Avatar
Ad