Retired

BlackListed (retired)

Description:

I'm trying to create this function but this annoying blacklist keeps triggering.

function blackListed(argument){
  if (typeof argument == 'string'){
    return Number(argument)
  }
  else
  {
    return String(argument)
  }  
}

And that didn't work, I got this response back: ERROR: Your code contains blacklisted characters: ( ) . ( )

Can you try to find a way to create a function that will convert strings to numbers and numbers to strings?

I've checked all the characters and these are getting filtered, and also I think there is a limit of 100 characters.

` ' " . ~ ( ) 0 1 2 3 4 5 6 7 8 9 /

Puzzles
Language Quirks
Pitfalls

Stats:

CreatedApr 13, 2022
Warriors Trained26
Total Skips0
Total Code Submissions243
Total Times Completed16
JavaScript Completions16
Total Stars0
% of votes with a positive feedback rating45% of 10
Total "Very Satisfied" Votes1
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes2
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • picocode1 Avatar
Ad