You are on page 1of 2

Class-WEB Development Day 04 JavaScript

Variables
VARIABLES ARE USED TO ASSING VALUES OR
CHANGE THE VALUES OR ADD VALUES

Local Variables are the variable Globel Variables are the variables which
which we create inside the function. we create outside the functions that we can
When the function is over all the local access these variables anywhere in the program.
variables are destroyed. When the function is over these variables will
not be destroyed.
These variables will destroy if only you reload the
webpage.
setInterval(f1, 100);
This is the function that worker has to do.

Using this command, we can create a worker.


This is the interval our worker can take after he
Our worker will do this work repeatedly until we stop finish the work.

You might also like