Glossary
- Blocking operation
A blocking operation requires the program to halt while it is waiting for a slow resource.
Typically, this is either a hardware resource (such as a disk drive), or a network resource (such as an HTTP request). Because the request cannot require a result from a slow resource, it blocks subsequent operation until it is complete, even if the computer or program still has available resources such as CPU or memory available.
- Callback
A callback is a function that is “called back” to after a blocking operation. Typically, this is an I/O operation such as disk access. Callbacks can take parameters.
- Class
See Pseudoclass
- Function
A unit of code that can be invoked with a set of variable parameters. It may pass a single return. In JavaScript, functions also have a context, which defines the value of the reserved
thisvariable. Functions in JavaScript are considered first class in that they can also be treated as variables or properties of objects.- Method
A function that is a property of an object.
See Also Function
- Nonblocking operation
A nonblocking operation is one that does not block.
See Also Blocking operation
- Pseudoclass
A pseudoclass is a way of creating an abtract object in JavaScript that is intended to be initialized into an object. Pseudoclasses should be turned into objects using the
newkeyword. Pseudoclass names start with a leading capital by convention to differentiate them from other kinds of objects. For example,Serverwould be a pseudoclass, andservermight ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access