20
hashr
6y

can someone explain this

Comments
  • 2
    How??.
    All i know is splits into array and then loop.

    But '' (not empty space or what?)
  • 37
    Well, for me it logs b tree times. I bet your console is grouping identical logs. There doesn't happen to be a 3 to the left of the b-logs?
  • 33
    @ScriptCoded ohkay i have just successfully wasted 30 min on this and yes it is grouping identical logs
  • 8
    i am extremely sorry for my actions😭
  • 2
    AFAIK the console.log has a return value of undefined which why the console tells you that.
  • 4
    @hashr Development at its finest ;)
  • 2
    @kolaente the problem he’s asking is 1 console.log output instead of 3
  • 3
    please do testing stuff on node for better results

    (It doesn't have grouping and various things that the browser may F up)
  • 4
    Next time ask your questions better. So people dont have to waste time on wondering what you actually want.
  • 3
  • 2
    happens with a simple console.log
  • 2
    and your method is not returning anything so it's undefined :p
  • 2
    What in the lord name is that? What do you want to achieve?
  • 2
  • 0
    Whats there to explain, its Javascript :D
  • 2
    Doesn't console.log output get grouped if the values are the same? There should be a counter somewhere near the line. (Only in chrome/Firefox Dev tools)
  • 0
    @jespersh oh, missed that 😁
  • 3
    I think the console logs get grouped. There should be a number on the right.
  • 1
    How about you look to the right and see that the console UI aggregates similar outputs -.- can you see that little 3 to the right of the console...
  • 0
    I see nothing wrong, ?
  • 0
    JS: double slit experiment.
Add Comment