Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

  • Completed at: 2023-07-10T20:30:22.446Z

  • 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