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.
In the sample test for javascript, the test is for 1 and 2, not 1 and 3.
See?
I think there is a mistake with the test - the sum of (1,3) in binary is not '11' but '100' - when I press the 'atempt' button its worked
you can convert it to an array by the split method, and then convert each item from string to a number:
function iqTest(numbers) {
var arr = numbers.split(' ');
arr = arr.map (x => Number(x));
//the rest...
}
I olso made one by myself and its work for me, try this:
const TOT_MORSE_CODE = {
".-": "a", "-...":"b", "-.-.": "c", "-..": "d", ".":"e", "..-.":"f", "--.":"g", "....":"h", "..":"i", ".---":"j", "-.-":"k", ".-..":"l", "--":"m", "-.":"n", "---":"o", ".--.":"p", "--.-":"q", ".-.":"r", "...":"s", "-":"t", "..-":"u", "...-":"v", ".--":"w", "-..-":"x", "-.--":"y", "--..":"z", ".----":"1", "..---":"2", "...--":"3", "....-":"4", ".....":"5", "-....":"6", "--...":"7", "---..":"8", "----.":"9", "-----":"0", "|":" "
};