Skip to content

Latest commit

 

History

History

convert-a-string-to-a-number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
  • Completed at: 2023-02-12T14:37:14.974Z

  • Completed languages: javascript, python

  • Tags: Parsing, Strings, Fundamentals

  • Rank: 8 kyu

Description

Note: This kata is inspired by Convert a Number to a String!. Try that one too.

Description

We need a function that can transform a string into a number. What ways of achieving this do you know?

Note: Don't worry, all inputs will be strings, and every string is a perfectly valid representation of an integral number.

Examples

"1234" --> 1234
"605"  --> 605
"1405" --> 1405
"-7" --> -7