This comment is hidden because it contains spoiler information about the solution
Wait, you're using coffeescript now?
There is no function named 'maskify' in the code you posted.
"Usually when you buy something, you're asked whether your credit card number, phone number or answer to your most secret question is still correct. However, since someone could look over your shoulder, you don't want that shown on your screen. Instead, we mask it.
Your task is to write a function maskify, which changes all but the last four characters into '#'. - it's task and the code returns the correct answer, but program say...
Time: 727msErrors: 1Exit Code: 1
/home/codewarrior/test.coffee:6:26: error: unexpected ]
Actually, where is your function defined? Look at initial code and complete given function.
Where are you returning the result? Are you even using the given function argument?
/printing the reuslt
Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution are you printing or returning the result?
Hi , thank you for the great page , but im masking the numbers correctly, it shows me the log is whats expected , but it says its failed? I dont get it? Please clarify data type... but its obviously string... It looks solved on my part.
Please don't post solutions in Discourse: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#post-discourse
Yes, and it is in your code, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution