Къде ми е грешката в тази задача 01. Print an Array with a Given Delimiter и защо judge ми дава 0 точки?
Това е моя код: https://pastebin.com/PPNyF4Xb
Ето и условието на задачата:
1.Print an Array with a Given Delimiter
The input comes as two parameters – an array of strings and a string. The second parameter is the delimiter.
The output is the elements of the array, printed on the console, each element separated from the others by the given delimiter.
Examples
| Input | Output | 
 | Input | Output | 
| ['One', 'Two', 'Three', 'Four', 'Five'], '-' | One-Two-Three-Four-Five | 
 | ['How about no?', 'I', 'will', 'not', 'do', 'it!'], '_' | How about no?_I_will_not_do_it! | 
Много благодаря.
Моля.
function printAnArrayWithAGivenDelimiter(array, delimiter) {
console.log(array.join(delimiter));
}
аз имам друг проблем с този код в студио код ми дава правилния отговор а в джъдж
One,Two,Three,Four,Five,-, това