In the 1990s, I created several simple applets for calculating various parameters related to electronic components. Applets were "inserts" that made websites more attractive and enhanced their functionality. Unfortunately, they turned out to be very insecure. They were replaced by other, more modern programming technologies. I also modified some of the applets using JavaScript capabilities. In this section, I described a simple calculator for calculating the diameter of a winding wire. Here, you can see a calculator for calculating the inductance of a single-layer air-core coil. Similarly to the other "retro" scripts described in this section, I posted it on the FonAr website in the early 2000s.

In accordance with the declaration that I am reproducing the content of the Fonar website, I am allowing myself to post the aforementioned script without any changes or modifications. From the perspective of modern JavaScript language descriptions, it contains many unused approaches, for example, the var keyword is used, etc. I believe that from a practical perspective, the advantages of this script are negligible. However, they may be interesting for someone who programs in JavaScript and would like to see what a script written a quarter of a century ago looks like.

I should point out in advance that due to the program's age, it may have problems running in some browsers. I don't experience any issues with mine. I invite you to view, try, and analyze the code:

Inductance of a single-layer air coil