Ad
  • Custom User Avatar

    Hi,

    Could somebody please explain why code below is not valid and should throw error:

        var f$ocAdSY3Tpb1eMB$SzVylg0yezu $sJP10cUAn8eqvikoKhhZUMK38 Z81_40Hv1sSvoeoi3iZY0UQeSfmt Xo9XkP8XwwVcJiquogmXMrCeF4E
        read f$ocAdSY3Tpb1eMB$SzVylg0yezu
        cmp 100 f$ocAdSY3Tpb1eMB$SzVylg0yezu $sJP10cUAn8eqvikoKhhZUMK38
        ifeq $sJP10cUAn8eqvikoKhhZUMK38 -1
            call mSP3RrLQPuEEpoXMDXnK7TZiD0EBRgdJCcLKuTJ f$ocAdSY3Tpb1eMB$SzVylg0yezu
        end
        ifneq $sJP10cUAn8eqvikoKhhZUMK38 0
            msg "7//77"
        end
        ifeq $sJP10cUAn8eqvikoKhhZUMK38 1
            call PbZ9l_m4S$aTW8jy9eHsKxBTp9p3h '5'
        end
        proc mSP3RrLQPuEEpoXMDXnK7TZiD0EBRgdJCcLKuTJ $$
            b2a $$ $$ Z81_40Hv1sSvoeoi3iZY0UQeSfmt Xo9XkP8XwwVcJiquogmXMrCeF4E
            msg f$ocAdSY3Tpb1eMB$SzVylg0yezu Z81_40Hv1sSvoeoi3iZY0UQeSfmt Xo9XkP8XwwVcJiquogmXMrCeF4E
        end
        proc PbZ9l_m4S$aTW8jy9eHsKxBTp9p3h $_
            a2b $_ $_ $_ $_
            call mSP3RrLQPuEEpoXMDXnK7TZiD0EBRgdJCcLKuTJ $_
        end
    
  • Custom User Avatar

    This is my first translation, thank you for your feedback.

    I will update translation and fix everything you mentioned in comments.

  • Custom User Avatar

    My translation looks same as original JavaScript kata.
    In my opinion tests must work in the same way for all languages.