Ad
  • Custom User Avatar

    Hi @mrkishi,

    yes, i meant functions as global 'entities' which can be accessed from the window. I do realise all the katas are in a specific enviroment designed for training purposes only, they're meant to use the global scope, however afaik it's not advisable to implement such a behaviour in a real app, since these functions may interfere with functions from other scripts and libraries.

  • Custom User Avatar

    please correct me if i'm wrong, but isn't it a very bad practice to create variables in the global scope? I wouldn't call it 'clever' per se, but true it is the shortest solution, in this limited 'test' enviroment.

  • Custom User Avatar

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