A dynamic variable name is auto-generated while running the program.
Table of Contents
The above example will create a variable myNum and store value 88 in it. The above example will create multiple documemt variables every time the for loop executes the code inside it. In the browser, the window object is the global object.
Using it also we can create a dynamic variable which will run on our browser. Now if you effect global warming essay the above code, then it will be proven that our code is successfully able to generate variable document write a dynamic variable dynamically.