Skip to content

Latest commit

 

History

History

fake-binary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
  • Completed at: 2023-03-30T05:06:51.811Z

  • Completed languages: javascript

  • Tags: Fundamentals, Strings, Arrays

  • Rank: 8 kyu

Description

Given a string of digits, you should replace any digit below 5 with '0' and any digit 5 and above with '1'. Return the resulting string.

Note: input will never be an empty string