What is garbage collection and how is it performed in JavaScript apps?
What will be an ideal response?
Garbage collection refers to cleaning up, or reclaiming, memory that is reserved by a program. When you declare a variable or instantiate a new object, you are actually reserving computer memory for the variable or object. With some programming languages, you must write code that deletes a variable or object after you are through with it in order to free the memory for use by other parts of your program, or by other programs running on your computer. With JavaScript, you do not need to worry about reclaiming memory that is reserved for your variables or objects; JavaScript knows when your program no longer needs a variable or object and automatically cleans up the memory for you.
You might also like to view...
What is hypertext? How are the key ideas of hypertext incorporated into the Web?
What will be an ideal response?
A Java program that runs in conjunction with a hosting program such as a Web browser is a "mini" application or ____________________.
Fill in the blank(s) with the appropriate word(s).
The ____ is the pace the processor clock sets for executing instructions.
A. clock speed B. bus speed C. processing techniques D. word size
The classification of a user as internal or external is based on the user's relationship to the organization
Indicate whether the statement is true or false