Export / Import cannot handle data in Kosoli. What to do?

  • 0
    The problem is that, I cannot interact with the variable in the console, call methods with proto, etc.
    Here are all the screenshots you need:




    JavaScript Anonymous, Jul 21, 2020

  • 1 Answers
  • 0
    And they shouldn't, the time property is not defined in the global scope, you have modules, the scope of the module remains inside the module.



    If you really want to, you can add a link to the object in the global scope by hand:



    window.time = time;
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!