A
A
Artem Pyvovar2020-10-04 12:34:34
JavaScript
Artem Pyvovar, 2020-10-04 12:34:34

Export/Import can't operate on data in console. What to do?

The problem is that I can't interact with the variable in the console, call methods with proto, etc.
Here are all the necessary screenshots:
5f7996be14af3718844338.png
5f79966c4af5a568755520.png
5f7996858bbd1478776054.png
5f7996ef57114479415325.png
5f7996dbbf46c247898297.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stranger in the Q, 2020-10-04
@art9mid

And they shouldn't, the time property is not defined in the global scope, while you have modules, the scope of the module remains inside the module.
If you really want to, you can add a reference to the object to the global scope manually:
window.time = time;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question