5 kyu

The Hashtag Generator

55,479 of 106,927AKJ.IO
Description
Loading description...
Strings
Algorithms
  • Please sign in or sign up to leave a comment.
  • Hyakume1 Avatar

    Really easy kata in JS

  • IPochynyukCoding Avatar

    Ridiciously easy on Python, probably more in line with 6 or 7 kyu than 5 kyu.

  • SigmaAkainu Avatar

    woie zowie bowier this was a really easy kyu

    TBH should be a 7 kyu

    maybe its harder in different languages

    but in python its really easy peasy lemon squeesy

    SIGMAAKAINU OUT

  • hobovsky Avatar

    JavaScript: failure messages are confusing and extremely unhelpful. For example, one of assertions complains about a missing # character while it checks something totally different.

  • Ashlion Avatar

    I got this output while doing all the tasks of this problem: Expected a Hashtag (#) at the beginning.: expected '#DoWehaveAHashtag' to equal '#DoWeHaveAHashtag' I don't understand the error; expected and equal is the same...

  • ghf67f Avatar

    This comment has been hidden.

  • natan Avatar

    Python doesn't test inputs that only contain spaces. Furthermore, the description is at best (I think it disagrees with the ref solution and isn't ambiguous, '#' is not empty) ambiguous about what that should return as a string containing only '#' is not empty, and yet the ref solution says the result should be False.

  • michalwegiel95 Avatar

    At least in python it is bad practice to write a function which return two different types. This function should either return empty string instead of False or raise an exception when hashtag cannot be created.

  • jobus Avatar

    Please update the requirements to include cases with a leading '#' because there are none. If I wanted bad requirements I would work instead of coming here to code.

  • Eorlanas Avatar

    The #DoWeHaveAHashtag test in JS is broken and doesn't seem to recognize the # sign even though all other tests work.

  • DaveSJWilliams Avatar

    This comment has been hidden.

  • MiloszPiskor Avatar

    This comment has been hidden.

  • Looking4me? Avatar

    Empty line ? Changes ? Output ?

  • eymeter Avatar

    the head of each word should not be capitalized

  • Ahmedrt6 Avatar

    This comment has been hidden.

  • migoslantatrap Avatar

    This comment has been hidden.

  • enlist113 Avatar

    The order of the tests is odd. Test 3 assumes that capitalization is already implemented, which is only expected from test 6. Test 4 is arguably easier than 3 and should probably be run first.

  • volkanbeyfendi Avatar

    It is a good exercise for kata 5-6

  • Ali-jb Avatar

    In the description, it says:

    If the final result is longer than 140 characters, it must return false.
    If the input or the result is an empty string it must return false.

    While implementing my solution in Scala, I initially returned "false" as a string for this case. However, the tests were expecting an empty string instead. I suggest updating the description to specify that false should be represented as an empty string in the output.

  • Csc32 Avatar

    This comment has been hidden.

  • Vincent Engel Avatar

    I think there is an issue with a basic test ("testThatSomethingShouldHappen") request. The function should reject strings longer than 140 or equal chars. This request wishes to see the string "#CodeWars" but the input string is larger than 140 chars:

    $this->assertSame('#CodeWars', generateHashtag('Code' . str_repeat(' ', 140) . 'wars'));

    I'm using PHP on this Kata

  • weareblahs Avatar

    The question says "If the final result is longer than 140 chars it must return false". But, the "Too long" part (below is JavaScript version of the test code),

    assert.strictEqual(generateHashtag("a".repeat(140)), false, "Too long")
    

    just gives me 140 "a"s and does not return "false". I think that the question should be "140 chars or longer".

  • J17C99 Avatar

    Hi. I've been running into the same error with the Looo...ong Cat test and another one where the final hashtag is longer than 140 characters. According to the tests I should be returning False instead of whatever it is I'm returning. However I've been debugging my code in pycharm to see what was going on and what I was returning... my code IS returning False for those cases yet here it is not? I'm not sure what's going on.

    EDIT: Nevermind I'm dumb. I don't really use twitter (ig it's X now) so I thought the length of the hashtag was counted after the "#" so I was substracting 1 to the length of the final string.

  • Boky523 Avatar

    arreglen el copilador, en local me funciona

  • Libaur Avatar

    My favourite kata ever! Thank you very mutch! Lllove it!

  • RobotCat Avatar

    This comment has been hidden.

  • Morgrime Avatar

    This comment has been hidden.

  • NavalnyAlex Avatar

    Seems too easy for a 5kyu

  • Savely 818 Avatar

    I keep rewrite my code over and over again. I do not use touppercase, (though, why?), I keep have right answers in my browser console, and I keep have errors when trying to test it. Different errors. First version apparently didn't like touppercase using, ok, I changed it. Second version didn't like an replace method (not sure but still, it was adviced in discussion), I changed it too. Third version didn't like an one word case test - expected false to equal '#CodeWars'. But I do have '#CodeWars' as a result in browser console! I also do not check string.length too early, and still, errors.

    The test for this cata is written POORLY and BUGGY! Why does it reject touppercase method and keep throw an error? It also reject fromCharCode(charCodeAt) method and also keep throw an error.

    What. Is. Wrong. With. This. Cata???

    If your test code do have problems with certain methods, then may be you'd mention it in cata conditions not to use this and that?

  • fatih-bilgin-kko Avatar

    This comment has been hidden.

  • cpendo Avatar

    This comment has been hidden.

  • sbhandari-ids Avatar

    Should look at the resulting length.: False should equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhhIiiiiiiiiJjjjjjjjjjKkkkkkkkkkkLlllllllllllMmmmmmmmmmmmmNnnnnnnnnnnnnnOooooooooooooooPpppppppppppppppQqq'

    The test keeps failing with the error message below. The string above is also 140 chars only. So, why the testcase is not passing when I have the condition to test the string length.

  • bloodtearsghoul Avatar

    Traceback (most recent call last): File "/workspace/default/tests.py", line 1, in from solution import generate_hashtag ImportError: cannot import name 'generate_hashtag' from 'solution' (/workspace/default/solution.py)

    What should i do?

  • ssrwuhan Avatar

    can anyone please tell me why do i keep getting this same error?the error, Still an empty string: expected '#' to equal false

  • dasph21 Avatar

    This seems to be a very poorly written test. A lot of the conditions are only made clear in the test cases, and the description explicitly states that the method should return false in some cases and String in others, yet the method return value is String. It's not clear that it actually means it should return an empty string when it's invalid, unless you look at the tests

  • ssrwuhan Avatar

    can anyone help me please the compiler for some reason keeps saying that it can not convert my string to upper case

  • Nielskepielske Avatar

    For some reason it doesn't recognize str.length. It always skips over my statement and always gives back "false". In my own IDE it works perfectly fine.

  • saudiGuy Avatar

    Ruby: function name should be snake_case

  • shar1kova Avatar

    This comment has been hidden.

  • anzhelf Avatar

    действительно ли из 'Codewars' нужно получить 'CodeWars'?

  • madunn123 Avatar

    This comment has been hidden.

  • j4cki Avatar

    This comment has been hidden.

  • stefu28 Avatar

    Works in node console returning false for over 140, but fails tests here

  • Nmomin11 Avatar

    I keep getting this failed test case and I dont know how to solve it -> Too long: expected '#Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…' to equal false

  • Gonçalo_05 Avatar

    This comment has been hidden.

  • Alissonn-XX Avatar

    This comment has been hidden.

  • turbojs Avatar

    Whatever I do I keep seeing error: "Should look at the resulting length: expected false to equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhh…'"

    Error message contains not enough information to understand what is wrong.

    The task itself lacks details and unambiguity, e.g. I must check the length of raw input string or "condensed" ? trimmed ? single spaced ? Why string with a space is called "empty" (in tests) ? "It must start with a hashtag (#)." --- is about result or input ? How result can be empty string if it MUST contain '#'.

    This kata reminds real life situation when task is given partially and you have to GUESS what to do... sorry for much text, i wanted to relax doing katas but something went wrong)))

    I believe the issue is mainly caused by badly formulated requirements.

  • hisyamsz Avatar

    Should look at the resulting length: expected false to equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhh…'. Please someone help me with this error

  • amn102 Avatar

    Should look at the resulting length.: False should equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhh......'can someone explain for me this bug pls

  • AliWebDev124 Avatar

    the intructions missing the point that first letters should auto capitalize.

  • never_ever Avatar

    I enjoyed this one, thank you. One small issue is that on the Python version, False is written as false with a lowercase f in the description. At first I was a bit confused, thinking maybe the tests were expecting us to return a string saying "false" if there was a problem with generating the hashtag. In other words True and False are capitalized in Python.

    Just a small quibble

  • RenLev Avatar

    There is an error with the sample cases, it was written as "assert.strictEqual(generateHashtag("code" + " ".repeat(1function generateHashtag (str) {" but should be "assert.strictEqual(generateHashtag("code" + " ".repeat(1))function generateHashtag (str) {". This causes an error with the syntax.

  • zstobi Avatar

    I've tried multiple solutions, encountering errors until I believed I had found the correct one. However, when I attempted it, I received this error: " Should look at the resulting length: expected false to equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhh…' ". So my code isn't good enough or this is an issue. Assuming the result is a sum of the letters of the alphabet plus the #, the length of the response should be greater than 140. Therefore returning 'false' would be the correct thing to do. Please let me know if I am wrong.

  • ejini战神 Avatar

    There should be tests of single-character strings like #, A and a to invalidate certain solutions

  • Suham1234 Avatar

    This comment has been hidden.

  • NicolaGasparotto Avatar

    I've got this test not passed: Should look at the resulting length.: False should equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhhIiiiiiiiiJjjjjjjjjjKkk But i'm sure that my code is working, so there is a problem with this test. please correct it

  • _Julius_ Avatar

    This comment has been hidden.

  • DangerBadger Avatar

    The result in my IDE seems to be ok. "Do We have A Hashtag" and "Hello there thanks for trying my Kata" transforms into "#DoWeHaveAHashtag" and "#HelloThereThanksForTryingMyKata". The strings with length > 140 return false. But tests failed with "Cannot read properties of undefined (reading 'toUpperCase')" error. What could be the reason for this behavior of the algorithm?

  • Nick34711 Avatar

    returns this error: Still an empty string: expected '#' to equal false - though the # element is required in the result

  • piotrjass Avatar

    expected false to equal '#CodeWars' even if the code works just fine...

  • nicholasprice Avatar

    in description we have condition that if final result LONGER than 140 chars it must return false, but we have no condition that if final result EQUAL 140 chars we have to return false too.

  • Splicer97 Avatar

    This comment has been hidden.

  • Jikuat Avatar

    Why the difficulty of katas is SO different every time? It was nothing, compared to other 6 kyu tasks I've solved.

  • swwl3h Avatar

    expected #dowehaveahashtag to equal #dowehaveahashtag can somebody tell me the difference im just a silly person

  • boariudiana11@gmail.com Avatar

    why I can not use charCodeAt() or toUpperCase() javascript functions

  • PolySynth Avatar

    This comment has been hidden.

  • fup6m3vj0 Avatar

    纯煞笔

  • user4287463 Avatar

    This comment has been hidden.

  • BorisDmv Avatar

    expected false to equal '#CodeWars' even thought I I'm returning '#Codewars' as It should be right?

  • eiscoollol Avatar

    how is this kata for 5 kyu? it's easier than a 6, 7 kyu...

  • myushmi Avatar

    Totally shitty, sucks....

  • Azsolti Avatar

    Why is this 5 kyu? A lot of sixes is harder that this. I dont't get it or ?

  • abdulazizkomilov Avatar

    Maybe it is not hard

  • SmartXYZ Avatar

    This comment has been hidden.

  • ikrambouaddi Avatar

    Should look at the resulting length: expected false to equal '#ABbCccDdddEeeeeFfffffGggggggHhhhhhhh…' what's wrong

  • DoQuL Avatar

    This comment has been hidden.

  • juandata Avatar

    This comment has been hidden.

  • m@ng.zu Avatar

    why are they asking me for random tests?🕸

  • m@ng.zu Avatar
    ✮ᴗ✮
    
  • ViktorAfk Avatar

    This comment has been hidden.

  • m8_moly Avatar

    Is this kata broken? Everything works fine in the IDE, but for some reason the site says that there are errors. I have checked all the tests and everything is correct

  • MistofThunder27 Avatar

    This comment has been hidden.

  • Hazem.H Avatar

    this test is broken my code work well in IDE but as I test here ther that issue with "Codewars" he expect what ?????

  • heslav Avatar

    IMO too easy for 5kyu. Should be 7.

  • kguryanov Avatar

    I guess tests should also check fo boundary values:

    • an input of 1 non-whitespace letter
    • an input with 139 non-whitespace letters
    • an input with 140 non-whitespace letters
  • nidhisharma Avatar

    I am returning false i str is empty

      if (!str || str.trim() === "") return false;
    

    then why my code further execcute it should return false. however it's working fine in console not here

  • feitan10 Avatar

    my code works completly in console, but here does not working

  • SkinnyKenneth Avatar

    so... it does have hashtag obviously. checked it 1000 times on codepen. works perfectly. not sure what the issue is here

  • yuri_minas Avatar

    I liked this one a lot, nice job

  • darenberg Avatar

    This comment has been hidden.

  • Ivansz Avatar

    Expected a Hashtag (#) at the beginning.: expected '#DoWehaveAHashtag' to equal '#DoWeHaveAHashtag'

  • pibelanzallamas Avatar

    hey i check that the string is not empty and it keep saying return false if(!str || str.length < 1){ return false; } this is not enought for checking empty strings? cheers!

  • user1628223 Avatar

    This kata is way too easy for 5 kyu - it should be around 7 kyu instead.

  • niko00 Avatar

    No random tests for Javascript.

  • proxyjem Avatar

    Please fix the 148 white spaces i tried regex and trim() and it's not working

  • KirillSerg Avatar

    Maybe it is necessary to add the condition of having only one "#" in the entire output str (at the beginning of the hashtag). Because in my tests I've got resal like this - "#TheABC#quickBro"

  • Artem_Borbush Avatar

    This comment has been hidden.

  • zachkaigler Avatar

    This comment has been hidden.

  • MatthewPollardUK Avatar

    This challenge has incorrect tests for JavaScript. In the instructions, it doesn't state that strings just with a hash(#) should return false.

  • paulhondl Avatar

    I don't understand the following test: Test.assertEquals(generateHashtag("a".repeat(139)), false, "Still an empty string") If a is repeated x times, it's not an empty string. What am I missing?

  • -Franky- Avatar

    This comment has been hidden.

  • PatrykCz Avatar

    This comment has been hidden.

  • AndyNoob Avatar

    Hey! I think a wording in the description is a little wrong! In one of the test cases provided, "a".repeat(140) was marked to be equal to false, while the description read "If the final result is longer than 140 chars it must return false." I think the mathmatically correct way here is "If the final result is longer than or equal to 140 chars it must return false."

  • AliceOrunitia Avatar

    This comment has been hidden.

  • maxime.f Avatar

    This should not be 5 kyu, it is easier than that.

  • Codetastic152 Avatar

    How come i only got 8 honor for this? Did mods deem this too easy for a 5 kyu? If so, they should change the kyu rank.

  • Artem_Cheremisin Avatar

    Ели вы создаете такой тест, будьте доры указать коректо условия и требования!!

  • mponsclo_ Avatar

    This comment has been hidden.

  • Marowak Avatar

    This comment has been hidden.

  • Letmechek Avatar

    well it works on my computer

  • Benjamin.dev Avatar

    I've: Still an empty string: expected undefined to equal false, but my code works on my VScode and return false

  • dannyowns Avatar

    I created a Swift translation of this kata, any chance for approval?

  • Dokli Avatar

    The description asks to return false when s is empty but in the tests "" is the required return value

  • Teaca-Sebastian Avatar

    "expected false to equal '#CodeWars'" But code works in console or .js file on pc, weird

  • Meinong Avatar

    Honestly, felt a bit too easy for a kyu5 challenge.

  • ayubmm Avatar

    The instruction said "If the final result is longer than 140 chars it must return false." But in my solution it should've been "is equal or longer than 140 chars". Or maybe explain that 140 chars includes the hashtag ("#") so that it's more obvious

  • sweetsolumix Avatar

    This comment has been hidden.

  • ChrisPWilliams Avatar

    Scala description needs update: the description claims you must return false for invalid input, but the tests expect an empty string.

    Returning empty string is more sensible behaviour, please update the description to reflect this.

  • SolB2021 Avatar

    Hi just wondering if its my code or the test with the issue, I keep getting the error:

    TypeError: Cannot read property '0' of undefined at generateHashtag (test.js:11:26) at Context. (test.js:25:19) at processImmediate (internal/timers.js:464:21)

  • kryoo Avatar

    I love when kata correlates with actual tasks!

  • amirparker Avatar

    This comment has been hidden.

  • V3inard Avatar

    This comment has been hidden.

  • TroyRandall18 Avatar

    This comment has been hidden.

  • benjaminzwhite Avatar

    Python fork for review

    • Updates to new testing framework

    • Resolves issue raised by user @dongjin2008 : removes a fixed test which causes tests to fail ungracefully if user's solution is not of type str

    • Improved random test generation so that it does generate strings where expected answer is False

    Please close issue below if the fork is approved, and reply to user. Thanks!

  • dongjin2008 Avatar

    The test case shows error TypeError: 'bool' object is not subscriptable

  • xavierguihot Avatar

    Hey @KayleighWasTaken , we should probably edit the description for the Scala language to specify that we should return empty strings rather than false when the resulting string is empty or longer than 140 chars.

  • spencerhill97 Avatar

    This comment has been hidden.

  • KayleighWasTaken Avatar
  • KamilSadekov Avatar

    there returns 'undefined', when " ".repeat(138) => it looks like 'codeundefinedundefinedundefinedwars'

  • abhijeetChawla Avatar

    TypeError: Cannot read property 'toUpperCase' of undefined but the code is working perfectly in the browser console

  • Dmk_Grbzv Avatar

    Hi, who could helps me with '#CodeWars' error, should return false, I returning that value, but tests didn't pass(JS ). I could share link on CodePen.

  • Fanual Avatar

    How do I add letters to a capitalized letters to a string and keep them capitalized?

  • chunyukuo Avatar

    This comment has been hidden.

  • AlexandruStoica Avatar

    This comment has been hidden.

  • Zacrous12 Avatar

    I'm getting the same issue as everyone else. The output matches the output, but it is not working.

  • Snake26183 Avatar

    This comment has been hidden.

  • JMTiburcio Avatar

    I'm also having an issue with the test case: "Expected: '#CodeWars', instead got: false". I'm using JavaScript and the code does return #CodeWars in VSCODE. Do I need to paste the code here?

  • Scuggan Avatar

    I'm pretty sure this is a problem with my code as so many others have done it but this error just made me smile. Expected a Hashtag (#) at the beginning.: expected '#DoWehaveAHashtag' to equal '#DoWeHaveAHashtag' May or maynot be an actual issue.

  • JunaidShafi Avatar

    This comment has been hidden.

  • Eva-Rosalene Avatar

    This comment has been hidden.

  • minotskyi Avatar

    I got this error. Expected: '#CodeWars', instead got: false.

    Although everything works in my editor, the code fully meets all the requirements...

    I wrote in JS and tried different versions...

    Wasted time...(

  • bytewiz Avatar

    I think the test is incorrect I too receive: "expected false to equal '#CodeWars' " which is not really what happens. I think the test needs some correction. I used JavaScript

  • opitt-KS Avatar

    This comment has been hidden.

  • amir33ein Avatar

    nice kata!

  • FLEB Avatar

    There aren't any test cases that have a leading "#" in the input. (That also makes the expectations a bit ambiguous, so that could be clarified as well.)

    "#HashTagAlready"     ---> "#HashTagAlready"
    "#" + "a".repeat(139) ---> "#Aaaaaa...aaa", and not an overflow fail
    "#"                   ---> either "#" or a false for zero-length
    "     #     "         ---> nice try, pal, but that's still empty-- false
    "##"                  ---> "##" or maybe a false for zero-length if double-starting #s aren't allowed
    
  • fcr-- Avatar

    Lua translation! (author is inactive)

  • tonguyenducmanh Avatar

    Expected a Hashtag (#) at the beginning.: expected '#DoWehaveAHashtag' to equal '#DoWeHaveAHashtag' Is this a bug ?

  • thural Avatar

    " expected false to equal '#CodeWars' " .... I copy/paste the same code into VSCODE it just works there ... really frustrating

  • adamcole123 Avatar

    The tests dont match the description. It asks that all results longer than 140 chars should return false yet in the tests it expects us to delete duplicate words from the input and return a true value.

  • Nurlan Nurmash Avatar

    This comment has been hidden.

  • c0smikRay Avatar

    The tests don't seem to check all the conditions. Noticed couple of solutions where the INPUT string is checked if it's length is greater than 140 characters and not the FINAL string, yet those soltuions passed the tests. But the input string is allowed and can be greater than 140 characters, the condition is for the final string to be with max length of 140 chars.

  • tri@ Avatar

    Factor translation (author inactive)

  • Katu Avatar

    When I attempted it and it worked it wouldn't let me submit it. Has this happened to anyone else?

  • fdvmoreira Avatar

    thanks for wasting my time with obscure statements

  • Hec1 Avatar

    This comment has been hidden.

  • yairv13 Avatar

    Too bad replaceAll is not supported (js)

  • ovicez2004 Avatar

    This comment has been hidden.

  • joewhocodes Avatar

    I found this one extremely frustrating because the error codes were really misleading

  • Kessyblaise1 Avatar

    This comment has been hidden.

  • krysbaum Avatar

    Code works on Repl exactly but for some reason the code refuses to work in Codewars. Tests that it's passing through won't work and not sure why :( (says it fails at the .toUpperCase portion)

  • akar-0 Avatar

    (author is inactive)

  • iamayushmaan Avatar

    This comment has been hidden.

  • semenjob Avatar

    the code is correct error in the task

  • Ofty Avatar

    This comment has been hidden.

  • joonpak5 Avatar

    This comment has been hidden.

  • Feel30 Avatar

    This comment has been hidden.

  • Feel30 Avatar

    This comment has been hidden.

  • primepy Avatar

    This comment has been hidden.

  • darmel Avatar

    instructions ask to return 'false' if more than 140 chars or if it is empty, but test need False to pass

  • Argienewdev Avatar

    Not difficult enough for 5 kyu, should be around 6 or 7 since it's just string slicing/indexing

  • CrescentVisor Avatar

    Kinda had to cop out on validation on this one... since it ending up ignoring my conditoional at the top of the function block and continued execution... but it does work

  • akar-0 Avatar

    COBOL translation (author inactive).

  • piliponful Avatar

    Description of the task is not exhaustive. And not correct(If the final result is longer than 140 chars it must return false.)

  • andreibtc Avatar

    My code works in the console but doesn't pass the test here. I think this is broken.

  • Pepper1874 Avatar

    This comment has been hidden.

  • 31415rate Avatar

    Seems like the first test is corrupt? When deleting it, I can pass without getting an error

  • William Guiraud Avatar

    This comment has been hidden.

  • FLKQ Avatar

    TypeError: str.replaceAll is not a function at generateHashtag (test.js:10:14) at Context.it (test.js:31:19)

    works in chrome console

  • e1_dune Avatar

    #CodeWarIsNice!

  • 650WTop Avatar

    This comment has been hidden.

  • Hitrii_crab Avatar

    All conditions are met. Tests for variants not described in the condition. The author just mocked, such tasks should be deleted

  • corder Avatar

    This comment has been hidden.

  • Beefy1 Avatar

    This was easy for 5 kyu level. Could be 6 or 7.

  • AndriyRudyk Avatar

    All requested is done. I think is bad kata.

  • laurelis24 Avatar

    Broken Nvm, wrong information about length of the words. I also dont think this is 5ky. 7 kyu are even harder.

  • Waldemar-00 Avatar

    Он должен начинаться с хэштега ( #). Во всех словах первая буква должна быть заглавной. Если окончательный результат длиннее 140 символов, он должен вернуть false. Если ввод или результат представляет собой пустую строку, она должна возвращаться false

    Moe решение отвечает этим требованиям. Почему при прохождении тестов выясняются дополнительные требования?? Это уже не первая такая задача... Иногда приходится весь ход решения менять, потому что кто-то не прописывает все условия, а затем требует то, о чем и речи не было. Такое себе ресурс...Тому кто писал хочется заехать в глаз и побольнее. Ненавижу отсутствие конкретики. Знаю таких людей, они отвратительны.Задача решена. А осадок остался...

  • d.cisa Avatar

    TypeError: Cannot read property 'toUpperCase' of undefined at str.split.reduce (test.js:9:24) at Array.reduce () at generateHashtag (test.js:8:8) at Context.it (test.js:20:19)

    Works on Chrome Console but it doesn't in the embbebed console. Trying to use a toUpperCase of a string var inside a reducer

  • JollyRen Avatar

    This comment has been hidden.

  • mikeb24 Avatar

    I'm getting the error using Javascript, "Still an empty string: expected '#' to equal false". but all my tests are displaying correctly. Anyone else come across this problem?

  • kolanches66 Avatar

    This comment has been hidden.

  • SHaringan Avatar

    This comment has been hidden.

  • user1430804 Avatar

    interesting..

  • BobVanB Avatar

    This comment has been hidden.

  • flexibleidealist Avatar

    It seems like there's something wrong with the test expecting the output "#Codewars". The solution I wrote in JavaScript gives the correct output when I test it in VS Code but that test fails here.