Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
https://docs.codewars.com/training/troubleshooting#error-messages-and-printing-your-inputoutput
Does that answer your question?
how do i get the test cases(easy words please i am a child)
Your function has to be curried.
Do you understand "a function .. that returns a predicate function" ?
Tried like 5 versions of code... Not that easy. xD
can anyone tell me what s going on here cant return anything and how do i campare with predicate to pattern?
Approved
Instead of
return predicate(word);
, try justreturn predicate
. This will return the function itself.Can someone help me with structure of program?
This is how it looks:
function findMatchedByPattern(pattern) {
the code is here,
function predicate(word){
the code is here
}
return predicate(word);
}
ReferenceError: word is not defined
You are returning a predicate function. That function will have the word as a parameter.
How to read 'word' variable?