Pull to refresh
0
0
Send message

В subscribeMediaQuery ошибка. Нужно дописать return

Вот мой вариант, за 3:22 сек:

function missKiss(from, to, delay) {
  if(from <= to) {
    setTimeout(function() {
      missKiss(from + 1, to);
      console.log([from % 3 ? '' : 'Miss', from % 5 ? '' : 'Kiss'].join('') || from);
    }, delay);
  }
}
missKiss(1, 100, 50);

Information

Rating
Does not participate
Registered
Activity