W
W
WarriorKodeK2018-02-24 17:10:27
JavaScript
WarriorKodeK, 2018-02-24 17:10:27

How to create a "shared" object?

Hello. There is a problem, I need to create a "common object" of configurations when clicking, so that it can be used in other objects. But when I create it, it is not visible outside the click function (
What could be the problem?
Here is the code everything is described there: https://jsfiddle.net/ujqe9akL/2/
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question