Ad
  • Custom User Avatar

    Oh god. It was really painfully. I sat with this problem for several hours(about 4-5).
    As a result, the error was that fetch(url) should ALWAYS come immediately followed by ".then()".
    You can't write

      let promise = fetch(`...`);
      promise.then(...)
      return promise
    

    But I dont know why. May be it is related with a microtasks stack? If there is anyone who knows, please tell me the topics that I could read

  • Custom User Avatar

    Nice kata, it made me remember Date object

  • Custom User Avatar
  • Custom User Avatar

    What is wrong?

    
    /home/codewarrior/index.js:7
        calculate.counter = calculate.counter ?? 0;
                                               ^
    
    SyntaxError: Unexpected token ?
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:616:28)
        at Object.Module._extensions..js (module.js:663:10)
        at Module.load (module.js:565:32)
        at tryModuleLoad (module.js:505:12)
        at Function.Module._load (module.js:497:3)
        at Module.require (module.js:596:17)
        at require (internal/module.js:11:18)
        at [eval]:1:1
        
    

    Im sure that my function works... ??- defines whether variable is defined, if this one doesn define so its takes value after??` sign

  • Custom User Avatar

    Oh God. You are right))

  • Custom User Avatar

    why for 0 handshakes amount of partisipants have to be 0? It might be 1 participant... Just due to this inaccuracy in test my code isnt beautifull :c

  • Custom User Avatar

    Thanks) I decided task. I was really confident that return first one :) yack inattention

  • Custom User Avatar

    Have you seen my code(Im a newbie and really dk)? Im sure, im returning the first consisting. I have checked it by different cases> for example :
    longestConsec([ab, cdefgh, 1, 2, 3, jk, lmnopq ], 2).
    And all work correct. Im confused :( By the way i think yoy are right, thanks for cheking, will take more efforts

  • Custom User Avatar

    Wrong random test! I cant resolve task due to argiments arent a string type in the test.
    An error I have seen below:

    Incorrect answer for:
    strarr=[wnbfhqpfopvl,kckjldasxti,tkxvhuuefpgnqw,oezigscgdmixvc,wnqayrblm,tdjmftsuea,qihtgsfoicza,xqtehzeabveoc,cdkkjomrghxanrd,vlehysgvlcfu,afrfljupmcmd,tkzgnlxfzndti,rqhhhftmq,kovsjvozii,dwwgvrvpjc,afgnzpggipm,cynumpmgf,ldvikkpzihzhkqmz,xpfzcemiks,tggbhwzsefy,lbordrtvacik,tujrsuuee,kknhlqlizqtfhk,xtawjdjzvh,eyaaontv,opfslptmymosgis,hwcnfipvna,qvmzlzbyoz,zonwzuawvd,rvurggfhirn,vycxzesxtaix,klcoikcyja,qycmtu,uldkocuzmt,bdepsifu,jnmqlgkj,plitobrboemrurc,kfkiozic,xtzedbsyffsby,depmwjnuxc,zwiflrklojfufh,rzlxbuidz,airnwhxsq,pjydxpkxgikcn,rqohfd,jwehhwmqkkpx,feyrcxsje,jvradtuysholq,xupeptdysdu,uqtyfgctedekzss,dfuecshsnd,knwxafsdezvx,flsrbox,fnvcdxzgsl,vvxekhfbwlgr,agehjdgvbxfbvh,fjnlvyzzwrv,vfhufepoy,aymcpli,oczaajfibt,lfqdxgezz,akhtofyezlhv,vpfllwlvit,vzcnzwp,iyghscfhsscw,feyyhivmy,bnijidb,pfwykkgaf,eojpptmr,obxuowosx,uxxuup,unrtlmrlhfa,mhopoezf,cweemto,rizpephyxv,laphvua,dcbglhmbia,qczhmzqjqdc,yxetmddp,flfwlobiqsxffg,txbwyrug,pmyvijrdoztwjv,dnviux,izcifhhxpive,hxnbvpjjlmnj,iqdszjfkqjetin,srbmbmwqs,wczrezyjwyfh,anzbdvwsqjmy,tszvdlnpiqwzwpdm,rnzaghfwvugoryqa,rhhanqyknj,ckywqgbfdis,hdkknewrgvv,juvccj,vymvjqftrnpfdxcp,umwmdcihmguo,rotandecwq,zqbbsfck,pvxroajwg,swxcrm,geycnymk,qbkbnkeimsf,algfxpdj,jqyuxzejm,fzibualybb,ffcsvxtmqx,zsojcfjyq,rnmzdnjg,lurtjvv,grrqruryhtw,nqihabk,znnqefxgtynmm,ipsvtdvltqoeh,grzmlddsancc,dqqnzuvg,ahtaoxphh,lxjgyeptgpbo,bykpxobiqz,wluqbytwp,qxjvxgpfgmn,eoasjcvudvhy,fwrytyrfr,mtnonpnxcelrul,otujhxeccrdis,gyccdrtwhv,foyudqyjr,suhdztsjwzjdrfma,fzyspdrhqpotnr,povpbkdvu,vhtyhwclppqpnszo,apktno,biopmq,eavtatsmxp,ijhajkdd,gncrudwwnc,xonxkeerlypcj,hjwuagtmfadxvk,xtohttmszhvqcsq,ehvqovepppth,uaomhsxbps,souojvdrjadc,hiugucobezro,milexqjizxmr,crtfzrwbr,kwrlvrn,aowuqvpcqtehb,angxucbhlgjwmihr,yswuyiojtsb,jhvriacvclki,ttnylzoyk,zdwssfiwrr,xthjdyfzewxm,agxqajewo,zzbtmfpqpeg,mzwomhhtx,ehbiqjgglc,ybsohgpbzzaf,fcfntdeud,sprhveif,ousdpkyjacodfek,madxlaqvo,cclivkow,livysidzpnef,pguwxrgq,wywxvcdkagym,bztngfmdqba,eswacgmopnk,zwhvvhpbwudglt,kwymmuny,qxoakcpo,nwcrtiykveshxqkf,oycyymkffcsbdd,yzfuddauffkxanshte,ctzzqljzlrw,jupbphhhmcn,iuivbpehwy,nyolvhftslfi,irlhkgjvcqxy,zlgjpb,wcgstrmd,dpmwarnpid,schjlagmhozzgerlmh,mufsahq,xhffehj,eewzxtrdqo,ijbalozirfbs,rzyyhlop,bjtcqhbovb]
    k=34
    : expected 'eoasjcvudvhyfwrytyrfrmtnonpnxcelrulot…' to equal 'ahtaoxphhlxjgyeptgpbobykpxobiqzwluqby…'

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution