added a regex and type conversion based solution. I know that it isn't the fastest (as stated here : http://jsperf.com/numeric-string), but it might show more of the interviewed person's js knowledge